diff src/hgrunner.cpp @ 489:86cdaa346e59

Merge
author Chris Cannam
date Wed, 17 Aug 2011 22:13:51 +0100
parents 896b7903e8f2
children cd3dd285d0ff
line wrap: on
line diff
--- a/src/hgrunner.cpp	Wed Aug 17 22:13:14 2011 +0100
+++ b/src/hgrunner.cpp	Wed Aug 17 22:13:51 2011 +0100
@@ -40,6 +40,8 @@
 #include <unistd.h>
 #include <termios.h>
 #include <fcntl.h>
+#else
+#include <process.h>
 #endif
 
 HgRunner::HgRunner(QString myDirPath, QWidget * parent) :
@@ -497,9 +499,6 @@
         return;
     }
 
-    QSettings settings;
-    settings.beginGroup("General");
-
     if (executable == "") {
         // This is a Hg command
         executable = getHgBinaryName();
@@ -514,6 +513,7 @@
         if (action.mayBeInteractive()) {
             params.push_front("ui.interactive=true");
             params.push_front("--config");
+            QSettings settings;
             if (settings.value("useextension", true).toBool()) {
                 params = addExtensionOptions(params);
             }