windeplopyqt: Run qmlimportscanner from current directory.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Thu, 12 Dec 2013 12:46:24 +0000 (14:46 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 12 Dec 2013 13:24:29 +0000 (14:24 +0100)
Otherwise, passing relative paths to the -qmldir option does not work.

Change-Id: I4cff5a0e1ef7a2bcfa82558bb1898361f77f3014
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
src/windeployqt/qmlutils.cpp

index c2593cd..bd207fb 100644 (file)
@@ -97,7 +97,7 @@ QmlImportScanResult runQmlImportScanner(const QString &directory, const QString
     QByteArray stdOut;
     QByteArray stdErr;
     const QString binary = QStringLiteral("qmlimportscanner");
-    if (!runProcess(binary, arguments, directory, &exitCode, &stdOut, &stdErr, errorMessage))
+    if (!runProcess(binary, arguments, QDir::currentPath(), &exitCode, &stdOut, &stdErr, errorMessage))
         return result;
     if (exitCode) {
         *errorMessage = binary + QStringLiteral(" returned ") + QString::number(exitCode)