From de6e1517f27dca804b8d8a9a8ef8d8e12982d382 Mon Sep 17 00:00:00 2001 From: Guido Tack Date: Tue, 28 Mar 2017 08:58:49 +1100 Subject: [PATCH] Wait for solns2out process when it is just starting up and the solver has already finished. Fixes an issue where output wouldn't get printed. --- MiniZincIDE/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MiniZincIDE/mainwindow.cpp b/MiniZincIDE/mainwindow.cpp index ef31ace..f6457f4 100755 --- a/MiniZincIDE/mainwindow.cpp +++ b/MiniZincIDE/mainwindow.cpp @@ -1928,7 +1928,7 @@ void MainWindow::outputProcFinished(int, bool showTime) { } void MainWindow::procFinished(int, bool showTime) { - if (outputProcess && outputProcess->state()==QProcess::Running) { + if (outputProcess && outputProcess->state()!=QProcess::NotRunning) { connect(outputProcess, SIGNAL(finished(int)), this, SLOT(outputProcFinished(int))); outputProcess->closeWriteChannel(); return;