From a482710ef34eeba1294bac33f47f015906199bd4 2017-09-06 12:53:56 From: Alexandre Leroux Date: 2017-09-06 12:53:56 Subject: [PATCH] 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())