QTfrontend/tcpBase.cpp
changeset 3157 77ed36827e30
parent 2948 3f21a9dc93d0
child 3697 d5b30d6373fc
--- a/QTfrontend/tcpBase.cpp	Mon Mar 29 13:58:21 2010 +0000
+++ b/QTfrontend/tcpBase.cpp	Mon Mar 29 16:39:08 2010 +0000
@@ -72,6 +72,10 @@
   process = new QProcess;
   connect(process, SIGNAL(error(QProcess::ProcessError)), this, SLOT(StartProcessError(QProcess::ProcessError)));
   QStringList arguments=setArguments();
+  
+  // redirect everything written on stdout/stderr
+  if(isDevBuild)
+    process->setProcessChannelMode(QProcess::ForwardedChannels);
   process->start(bindir->absolutePath() + "/hwengine", arguments);
 }