From caeb8a41e236a7e401aa9eb71d6bb9554e967c90 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Tue, 18 Nov 2014 15:56:40 +0100 Subject: b2qt-flashing-wizard: Use correct SDK path Change-Id: I0dd5f829bb6422492466823efe0ed6063361b990 Reviewed-by: Mitch Curtis --- src/b2qt-flashing-wizard/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/b2qt-flashing-wizard') 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 #include +#include 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('/'); -- cgit v1.2.3