Skip to content

Commit

Permalink
Merge pull request #580 from openstudiocoalition/fix-progess-on-success
Browse files Browse the repository at this point in the history
Only set error to true on failed simulation
  • Loading branch information
macumber authored Dec 18, 2022
2 parents 43653fd + 1522154 commit a279420
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openstudio_lib/RunTabView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ void RunView::onRunProcessFinished(int exitCode, QProcess::ExitStatus status) {
m_textInfo->setFontPointSize(18);
m_textInfo->append(tr("Simulation failed to run, with exit code ") + QString::number(exitCode));

m_progressBar->setError(true);

//m_textInfo->setTextColor(Qt::black);
//m_textInfo->setFontPointSize(15);
//m_textInfo->append("Stderr:");
Expand All @@ -224,7 +226,6 @@ void RunView::onRunProcessFinished(int exitCode, QProcess::ExitStatus status) {
m_playButton->setChecked(false);
m_state = State::stopped;

m_progressBar->setError(true);
m_progressBar->setMaximum(State::complete);
m_progressBar->setValue(State::complete);

Expand Down

0 comments on commit a279420

Please sign in to comment.