From 618ed71d5c7363139e5b5d2eb4c4e4c55c0cfb96 2017-09-06 12:56:03 From: leroux Date: 2017-09-06 12:56:03 Subject: [PATCH] Merge pull request #264 from SCIQLOP-Initialisation develop Blocks UI update of a variable while it has pending requests --- diff --git a/core/src/Variable/VariableController.cpp b/core/src/Variable/VariableController.cpp index fa8e248..e7a3da5 100644 --- a/core/src/Variable/VariableController.cpp +++ b/core/src/Variable/VariableController.cpp @@ -694,7 +694,12 @@ void VariableController::VariableControllerPrivate::updateVariableRequest(QUuid qCDebug(LOG_VariableController()) << tr("3: onDataProvided") << varRequest.m_DataSeries->range(); qCDebug(LOG_VariableController()) << tr("4: onDataProvided"); - emit var->updated(); + + /// @todo MPL: confirm + // Variable update is notified only if there is no pending request for it + if (m_VarIdToVarRequestIdQueueMap.count(varIdToVarRequestMapIt->first) == 0) { + emit var->updated(); + } } else { qCCritical(LOG_VariableController())