]> git.lyx.org Git - features.git/commitdiff
add some debug info
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 27 Dec 2009 10:11:50 +0000 (10:11 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sun, 27 Dec 2009 10:11:50 +0000 (10:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32655 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index b9d08da28bbd683585a67ba9915e30a5953ee327..becfc00829896a0897b44a5978e491a23d7aed8c 100644 (file)
@@ -32,7 +32,7 @@
 #include <QDebug>
 
 #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_);
        }