diff --git a/CONFIG/MainDlg.cpp b/CONFIG/MainDlg.cpp index e187e88d..9f105f33 100644 --- a/CONFIG/MainDlg.cpp +++ b/CONFIG/MainDlg.cpp @@ -11,6 +11,7 @@ #include "res/resource.h" #include +#include #include #include #include @@ -164,9 +165,21 @@ void CMainDialog::launch() } QDir::setCurrent(QCoreApplication::applicationDirPath()); #ifdef _WIN32 - QProcess::startDetached("./isle.exe"); + if (!QProcess::startDetached("./isle.exe")) { + QMessageBox msgBox; + msgBox.setText("Unable to locate isle executable!"); + msgBox.setWindowTitle("Error"); + msgBox.exec(); + } #else - QProcess::startDetached("./isle"); + if (!QProcess::startDetached("./isle")) { // Check in isle-config directory + if (!QProcess::startDetached("isle")) { // Check in $PATH + QMessageBox msgBox; + msgBox.setText("Unable to locate isle executable!"); + msgBox.setWindowTitle("Error"); + msgBox.exec(); + } + } #endif QDialog::accept(); }