Skip to content

Commit

Permalink
Wait for solns2out process when it is just starting up and the solver…
Browse files Browse the repository at this point in the history
… has already finished. Fixes an issue where output wouldn't get printed.
  • Loading branch information
guidotack committed Mar 27, 2017
1 parent eeba3b2 commit de6e151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MiniZincIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de6e151

Please sign in to comment.