diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index b9d08da28b..becfc00829 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -32,7 +32,7 @@ #include #define USE_QPROCESS - +#define DEBUG_SYSTEMCALL struct Sleep : QThread { @@ -407,7 +407,12 @@ void SystemcallPrivate::stdErr() void SystemcallPrivate::processStarted() { +#ifdef DEBUG_SYSTEMCALL + cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_); + if (true) { +#else if (state != Running) { +#endif state = Running; ProgressInterface::instance()->processStarted(cmd_); } @@ -416,7 +421,12 @@ void SystemcallPrivate::processStarted() void SystemcallPrivate::processFinished(int, QProcess::ExitStatus) { +#ifdef DEBUG_SYSTEMCALL + cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_); + if (true) { +#else if (state != Finished) { +#endif state = Finished; ProgressInterface::instance()->processFinished(cmd_); }