Am Freitag, den 25.12.2009, 18:38 +0100 schrieb Pavel Sanda:
> hi,
> 
> some messages in progress debug window are doubled now.
> 
> we use signal/slot mechanism for seeing process started
> connect(proc_, SIGNAL(started()), this, SLOT(processStarted()));
> 
> for reason i dont understand we reach into the processStarted() slot
> twice for a single call. this seems to happen inside call
> return proc_->waitForStarted(timeout); (Systemcall.cpp:298)
> 
> is this expected or a bug?

It's a Qt bug, at least for 4.5.2. Don't know what happens with 4.6.

Index: src/support/Systemcall.cpp
===================================================================
--- src/support/Systemcall.cpp  (Revision 32641)
+++ src/support/Systemcall.cpp  (Arbeitskopie)
@@ -406,8 +406,10 @@
 
 void SystemcallPrivate::processStarted()
 {
-       state = Running;
-       ProgressInterface::instance()->processStarted(cmd_);
+       if (state != Running) {
+            state = Running;
+            ProgressInterface::instance()->processStarted(cmd_);
+        }
 }


Peter

Reply via email to