From 24abad8c6bae61a5d97f917ec5060795cddd2407 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Wed, 27 Nov 2019 17:23:51 +1300 Subject: [PATCH] Simulation Experiment view: reverted commit af84fb6 and properly fixed the issue we had. Indeed, it definitely didn't fix our problem while we do (should!) now. --- .../src/simulationexperimentviewsimulationwidget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp b/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp index 56ca1d7f69..b435cb2cc5 100644 --- a/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp +++ b/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp @@ -902,7 +902,7 @@ void SimulationExperimentViewSimulationWidget::initialize(bool pReloadingView) // Reset our progress - mProgress = 0; + mProgress = -1; // Clean up our output, if needed @@ -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(); } //============================================================================== @@ -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