@@ -112,7 +112,12 std::shared_ptr<Variable> VariableModel::variable(int index) const | |||
|
112 | 112 | |
|
113 | 113 | void VariableModel::setDataProgress(std::shared_ptr<Variable> variable, double progress) |
|
114 | 114 | { |
|
115 | impl->m_VariableToProgress[variable] = progress; | |
|
115 | if (progress > 0.0) { | |
|
116 | impl->m_VariableToProgress[variable] = progress; | |
|
117 | } | |
|
118 | else { | |
|
119 | impl->m_VariableToProgress.erase(variable); | |
|
120 | } | |
|
116 | 121 | auto modelIndex = createIndex(impl->indexOfVariable(variable.get()), NAME_COLUMN); |
|
117 | 122 | |
|
118 | 123 | emit dataChanged(modelIndex, modelIndex); |
@@ -83,7 +83,7 void CosinusProvider::requestDataAborting(QUuid identifier) | |||
|
83 | 83 | { |
|
84 | 84 | // TODO: Add Mutex |
|
85 | 85 | qCDebug(LOG_CosinusProvider()) << "CosinusProvider::requestDataAborting" << identifier |
|
86 | << QThread::currentThread()->objectName(); | |
|
86 | << QThread::currentThread()->objectName(); | |
|
87 | 87 | auto it = m_VariableToEnableProvider.find(identifier); |
|
88 | 88 | if (it != m_VariableToEnableProvider.end()) { |
|
89 | 89 | it.value() = false; |
General Comments 0
You need to be logged in to leave comments.
Login now