From 94ab8c8f74d304c0c651927e1b31da96660d1386 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Sat, 26 Dec 2009 16:07:16 +0000 Subject: [PATCH] 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 --- src/support/Systemcall.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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_); + } } -- 2.39.2