Skip to content

Commit

Permalink
Simulation Experiment view: only update our progress bar or our tab i…
Browse files Browse the repository at this point in the history
…con if needed (#1630).
  • Loading branch information
agarny committed May 1, 2018
1 parent a6b822a commit 74c127f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3876,7 +3876,7 @@ void SimulationExperimentViewSimulationWidget::updateSimulationResults(Simulatio

// Update our progress bar or our tab icon, if needed

if (simulation == mSimulation) {
if ((simulation == mSimulation) && mSimulation->isRunning()) {
QString simulationFileName = mSimulation->fileName();
double simulationProgress = mViewWidget->simulationResultsSize(simulationFileName)/simulation->size();

Expand Down

0 comments on commit 74c127f

Please sign in to comment.