summaryrefslogtreecommitdiffstats
path: root/src/b2qt-flashing-wizard
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@theqtcompany.com>2014-11-18 15:56:40 +0100
committerRainer Keller <rainer.keller@theqtcompany.com>2014-11-19 11:44:12 +0200
commitcaeb8a41e236a7e401aa9eb71d6bb9554e967c90 (patch)
tree023ddd689c1bd8fb844aff2365d2ac890d322216 /src/b2qt-flashing-wizard
parent1071310c5c72439d7fd522d0b6af9a6b0c6359ab (diff)
b2qt-flashing-wizard: Use correct SDK path
Change-Id: I0dd5f829bb6422492466823efe0ed6063361b990 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/b2qt-flashing-wizard')
-rw-r--r--src/b2qt-flashing-wizard/mainwindow.cpp3
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('/');