From: Peter Kümmel Date: Sat, 26 Dec 2009 16:53:29 +0000 (+0000) Subject: be sure processFinished() is only called once. X-Git-Tag: 2.0.0~4706 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0f8003c25a2462e163012373b860fe3cd4ee92e4;p=features.git be sure processFinished() is only called once. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32647 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/Systemcall.cpp b/src/support/Systemcall.cpp index 1a23f93c06..170a85a349 100644 --- a/src/support/Systemcall.cpp +++ b/src/support/Systemcall.cpp @@ -415,8 +415,10 @@ void SystemcallPrivate::processStarted() void SystemcallPrivate::processFinished(int, QProcess::ExitStatus) { - state = Finished; - ProgressInterface::instance()->processFinished(cmd_); + if (state != Finished) { + state = Finished; + ProgressInterface::instance()->processFinished(cmd_); + } }