[PATCH] Use backslashes on Windows for filesdir

Wald Commits scm-commit at wald.intevation.org
Tue Apr 29 20:01:03 CEST 2014


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398794455 0
# Node ID 0290adbdc380f1e00ad4b17743801721d9bc1f1b
# Parent  522b4e28c073aa76dac23839ce5a8ceee35930a8
Use backslashes on Windows for filesdir

diff -r 522b4e28c073 -r 0290adbdc380 ui/createinstallerdialog.cpp
--- a/ui/createinstallerdialog.cpp	Tue Apr 29 17:52:19 2014 +0000
+++ b/ui/createinstallerdialog.cpp	Tue Apr 29 18:00:55 2014 +0000
@@ -207,7 +207,7 @@
     mNSISProc.setProcessChannelMode(QProcess::MergedChannels);
     mNSISProc.setWorkingDirectory(outDir.path());
 #ifdef Q_OS_WIN
-    arguments << QString::fromLatin1("/Dfiles_dir=") + binDir.path() + "/windows";
+    arguments << QString::fromLatin1("/Dfiles_dir=") + binDir.path().replace("/", "\\") + "\\windows";
     foreach (const QString &key, keys) {
         arguments << QString::fromLatin1("/D%1=%2").arg(key,
                 options.value(key, QString()).toString());


More information about the Trustbridge-commits mailing list