@@ -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 | if (progress > 0.0) { | |
|
115 | 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); |
|
1 | NO CONTENT: modified file |
General Comments 0
You need to be logged in to leave comments.
Login now