diff options
Diffstat (limited to 'src/b2qt-flashing-wizard/mainwindow.cpp')
-rw-r--r-- | src/b2qt-flashing-wizard/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/b2qt-flashing-wizard/mainwindow.cpp b/src/b2qt-flashing-wizard/mainwindow.cpp index fe66ed0..000a710 100644 --- a/src/b2qt-flashing-wizard/mainwindow.cpp +++ b/src/b2qt-flashing-wizard/mainwindow.cpp @@ -27,6 +27,7 @@ #include "finish_page.h" #include <QDebug> #include <QDir> +#include <QCoreApplication> QString G_platform; // generic-4.4 / iMX6 QString G_version; // Boot2Qt version @@ -44,7 +45,7 @@ MainWindow::MainWindow() setPixmap(QWizard::WatermarkPixmap, QPixmap(":watermark.png")); G_SDKDIR = qgetenv("SDKDIR"); if (G_SDKDIR.isEmpty()) - G_SDKDIR = QDir::currentPath(); + G_SDKDIR = QDir::cleanPath(QCoreApplication::applicationDirPath() + "/../.."); if (!G_SDKDIR.endsWith('/')) G_SDKDIR.append('/'); |