diff --git a/src/mainwindow-dtk.cpp b/src/mainwindow-dtk.cpp index f98348c..0579f0b 100755 --- a/src/mainwindow-dtk.cpp +++ b/src/mainwindow-dtk.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -525,7 +526,11 @@ void MainWindow::notify(QObject *receiver, QEvent *event) void MainWindow::on_pushButton_14_clicked() { QString appPath; - appPath = QCoreApplication::applicationDirPath() + "/spark-update-tool/spark-update-tool"; + appPath = QCoreApplication::applicationDirPath() ; + QDir dir(appPath); + dir.cdUp(); + appPath = dir.absolutePath(); + qDebug() << "Spark Update Tool Path: " << appPath; if(appPath.isEmpty()) { qWarning() << "Spark Update Tool not found!";