mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
add some debug info
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32655 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0848fbc4a3
commit
74d47d843e
@ -32,7 +32,7 @@
|
|||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#define USE_QPROCESS
|
#define USE_QPROCESS
|
||||||
|
#define DEBUG_SYSTEMCALL
|
||||||
|
|
||||||
struct Sleep : QThread
|
struct Sleep : QThread
|
||||||
{
|
{
|
||||||
@ -407,7 +407,12 @@ void SystemcallPrivate::stdErr()
|
|||||||
|
|
||||||
void SystemcallPrivate::processStarted()
|
void SystemcallPrivate::processStarted()
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_SYSTEMCALL
|
||||||
|
cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_);
|
||||||
|
if (true) {
|
||||||
|
#else
|
||||||
if (state != Running) {
|
if (state != Running) {
|
||||||
|
#endif
|
||||||
state = Running;
|
state = Running;
|
||||||
ProgressInterface::instance()->processStarted(cmd_);
|
ProgressInterface::instance()->processStarted(cmd_);
|
||||||
}
|
}
|
||||||
@ -416,7 +421,12 @@ void SystemcallPrivate::processStarted()
|
|||||||
|
|
||||||
void SystemcallPrivate::processFinished(int, QProcess::ExitStatus)
|
void SystemcallPrivate::processFinished(int, QProcess::ExitStatus)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_SYSTEMCALL
|
||||||
|
cmd_ = cmd_ + " -- process: " + QString::number((quint64) proc_);
|
||||||
|
if (true) {
|
||||||
|
#else
|
||||||
if (state != Finished) {
|
if (state != Finished) {
|
||||||
|
#endif
|
||||||
state = Finished;
|
state = Finished;
|
||||||
ProgressInterface::instance()->processFinished(cmd_);
|
ProgressInterface::instance()->processFinished(cmd_);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user