##// END OF EJS Templates
Blocks UI update of a variable while it has pending requests
Alexandre Leroux -
r649:a482710ef34e
parent child
Show More
@@ -694,8 +694,13 void VariableController::VariableControllerPrivate::updateVariableRequest(QUuid
694 qCDebug(LOG_VariableController()) << tr("3: onDataProvided")
694 qCDebug(LOG_VariableController()) << tr("3: onDataProvided")
695 << varRequest.m_DataSeries->range();
695 << varRequest.m_DataSeries->range();
696 qCDebug(LOG_VariableController()) << tr("4: onDataProvided");
696 qCDebug(LOG_VariableController()) << tr("4: onDataProvided");
697
698 /// @todo MPL: confirm
699 // Variable update is notified only if there is no pending request for it
700 if (m_VarIdToVarRequestIdQueueMap.count(varIdToVarRequestMapIt->first) == 0) {
697 emit var->updated();
701 emit var->updated();
698 }
702 }
703 }
699 else {
704 else {
700 qCCritical(LOG_VariableController())
705 qCCritical(LOG_VariableController())
701 << tr("Impossible to update data to a null variable");
706 << tr("Impossible to update data to a null variable");
General Comments 0
You need to be logged in to leave comments. Login now