From 0f8003c25a2462e163012373b860fe3cd4ee92e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Sat, 26 Dec 2009 16:53:29 +0000 Subject: [PATCH] be sure processFinished() is only called once. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32647 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 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_); + } } -- 2.39.2