diff hgrunner.cpp @ 114:bb2d2eecdd60

* minor output fixes
author Chris Cannam
date Fri, 26 Nov 2010 21:17:24 +0000
parents 5fc7b4fc77a8
children 78374cefa10f
line wrap: on
line diff
--- a/hgrunner.cpp	Fri Nov 26 21:04:40 2010 +0000
+++ b/hgrunner.cpp	Fri Nov 26 21:17:24 2010 +0000
@@ -50,7 +50,7 @@
 HgRunner::~HgRunner()
 {
     closeTerminal();
-    delete m_proc;
+    if (m_proc) delete m_proc;
 }
 
 void HgRunner::requestAction(HgAction action)
@@ -245,6 +245,7 @@
         if (procExitCode == 0 && procExitStatus == QProcess::NormalExit) {
             DEBUG << "HgRunner::finished: Command completed successfully"
                   << endl;
+            DEBUG << "stdout is " << m_stdout << endl;
             emit commandCompleted(completedAction, m_stdout);
         } else {
             DEBUG << "HgRunner::finished: Command failed, exit code "
@@ -338,7 +339,7 @@
         if (m_ptySlaveFilename != "") {
             DEBUG << "HgRunner: connecting to pseudoterminal" << endl;
             m_proc->setStandardInputFile(m_ptySlaveFilename);
-            m_proc->setStandardOutputFile(m_ptySlaveFilename);
+//            m_proc->setStandardOutputFile(m_ptySlaveFilename);
 //            m_proc->setStandardErrorFile(m_ptySlaveFilename);
         }
     }