diff ui/installwrapper.cpp @ 1060:317ee9dc4684

(issue46) Make debug output optional in cinst and mozilla and propagate its setting.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 09 Sep 2014 18:49:02 +0200
parents db7e7156c824
children a12e6172d82c
line wrap: on
line diff
--- a/ui/installwrapper.cpp	Tue Sep 09 18:00:37 2014 +0200
+++ b/ui/installwrapper.cpp	Tue Sep 09 18:49:02 2014 +0200
@@ -94,6 +94,10 @@
     QString parameters = "\"list=" + mCertListFile +
         "\" \"choices=" + choicesFile.fileName() + "\"";
 
+    if (g_debug) {
+        parameters += " --debug";
+    }
+
     shExecInfo.cbSize = sizeof(SHELLEXECUTEINFOW);
     shExecInfo.fMask = SEE_MASK_NOCLOSEPROCESS;
     if (!is_system_install()) {
@@ -155,6 +159,10 @@
     choicesFile.setAutoRemove(false);
     parameters << "list=" + mCertListFile << "choices=" + choicesFile.fileName();
 
+    if (g_debug) {
+        parameters << "--debug";
+    }
+
     bool sudo_started = false;
     bool use_sudo = is_admin() && is_system_install();
     if (use_sudo) {

http://wald.intevation.org/projects/trustbridge/