Skip to content

Commit

Permalink
- Fixed the simulation unexpected finish on Linux.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10941 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Jan 23, 2012
1 parent eae654a commit 1e7abfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditGUI/SimulationWidget.cpp
Expand Up @@ -395,7 +395,7 @@ void SimulationWidget::simulateModel(QString simulationParameters)
// we set the Progress Dialog box to hide when we cancel the simulation, so don't show user the plotting view just return.
if (mpProgressDialog->isHidden())
return;
if (mpSimulationProcess->CrashExit == QProcess::CrashExit)
if (mpSimulationProcess->exitCode() > 0)
{
QMessageBox::critical(this, Helper::applicationName + " - Error", GUIMessages::getMessage(GUIMessages::ERROR_OCCURRED).
arg(mpSimulationProcess->errorString().append(" ").append(mpSimulationProcess->readAllStandardError())),
Expand Down

0 comments on commit 1e7abfc

Please sign in to comment.