diff --git a/core/src/Variable/VariableModel.cpp b/core/src/Variable/VariableModel.cpp index 43cca2f..75a3387 100644 --- a/core/src/Variable/VariableModel.cpp +++ b/core/src/Variable/VariableModel.cpp @@ -112,7 +112,12 @@ std::shared_ptr VariableModel::variable(int index) const void VariableModel::setDataProgress(std::shared_ptr variable, double progress) { - impl->m_VariableToProgress[variable] = progress; + if (progress > 0.0) { + impl->m_VariableToProgress[variable] = progress; + } + else { + impl->m_VariableToProgress.erase(variable); + } auto modelIndex = createIndex(impl->indexOfVariable(variable.get()), NAME_COLUMN); emit dataChanged(modelIndex, modelIndex); diff --git a/plugins/mockplugin/src/CosinusProvider.cpp b/plugins/mockplugin/src/CosinusProvider.cpp index eec2b6a..82a8bdd 100644 --- a/plugins/mockplugin/src/CosinusProvider.cpp +++ b/plugins/mockplugin/src/CosinusProvider.cpp @@ -83,7 +83,7 @@ void CosinusProvider::requestDataAborting(QUuid identifier) { // TODO: Add Mutex qCDebug(LOG_CosinusProvider()) << "CosinusProvider::requestDataAborting" << identifier - << QThread::currentThread()->objectName(); + << QThread::currentThread()->objectName(); auto it = m_VariableToEnableProvider.find(identifier); if (it != m_VariableToEnableProvider.end()) { it.value() = false;