Skip to content

Commit

Permalink
Simulation Experiment view: reverted commit af84fb6 and properly fixe…
Browse files Browse the repository at this point in the history
…d the issue we had.

Indeed, it definitely didn't fix our problem while we do (should!) now.
  • Loading branch information
agarny committed Nov 27, 2019
1 parent 5c967de commit 24abad8
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -902,7 +902,7 @@ void SimulationExperimentViewSimulationWidget::initialize(bool pReloadingView)

// Reset our progress

mProgress = 0;
mProgress = -1;

// Clean up our output, if needed

Expand Down Expand Up @@ -3003,9 +3003,11 @@ void SimulationExperimentViewSimulationWidget::simulationDone(qint64 pElapsedTim

mContentsWidget->informationWidget()->parametersWidget()->updateParameters(mSimulation->currentPoint());

// Stop tracking our simulation progress
// Stop tracking our simulation progress and reset our file tab icon

mProgress = -1;

resetFileTabIcon();
}

//==============================================================================
Expand Down Expand Up @@ -3769,7 +3771,7 @@ void SimulationExperimentViewSimulationWidget::updateSimulationResults(Simulatio
// Note: tabBarPixmapSize()-2 because we want a one-pixel wide
// border...

if ((newProgress != mProgress) && (mProgress != -1)) {
if ((newProgress != mProgress)) {
// The progress has changed, so keep track of its new value and
// update our file tab icon

Expand Down

0 comments on commit 24abad8

Please sign in to comment.