From 4223a71c7134092a261b4a1b80702c99147a583d 2017-09-29 15:55:01 From: Alexandre Leroux Date: 2017-09-29 15:55:01 Subject: [PATCH] Sets states after operations --- diff --git a/core/src/Variable/VariableController.cpp b/core/src/Variable/VariableController.cpp index 21332a7..967d9ea 100644 --- a/core/src/Variable/VariableController.cpp +++ b/core/src/Variable/VariableController.cpp @@ -352,6 +352,7 @@ void VariableController::onAbortProgressRequested(std::shared_ptr vari impl->cancelVariableRequest(varRequestId); // Finish the progression for the request + variable->setState(std::make_unique()); impl->m_VariableModel->setDataProgress(variable, 0.0); } else { @@ -788,6 +789,7 @@ void VariableController::VariableControllerPrivate::updateVariableRequest(QUuid qCDebug(LOG_VariableController()) << tr("2: onDataProvided") << varRequest.m_CacheRangeRequested; var->mergeDataSeries(varRequest.m_DataSeries); + var->setState(std::make_unique()); qCDebug(LOG_VariableController()) << tr("3: onDataProvided"); /// @todo MPL: confirm