From: Peter Kümmel Date: Sat, 26 Dec 2009 16:07:16 +0000 (+0000) Subject: workaround for Qt (4.5.2) bug: QProcess::started() is emitted twice X-Git-Tag: 2.0.0~4707 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=94ab8c8f74d304c0c651927e1b31da96660d1386;p=features.git workaround for Qt (4.5.2) bug: QProcess::started() is emitted twice git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32646 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index 5ba04cce4a..1a23f93c06 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -406,8 +406,10 @@ void SystemcallPrivate::stdErr() void SystemcallPrivate::processStarted() { - state = Running; - ProgressInterface::instance()->processStarted(cmd_); + if (state != Running) { + state = Running; + ProgressInterface::instance()->processStarted(cmd_); + } }