- for (auto it : old_progress) {
- size_t index = it.first;
- if (current_progress.count(index) == 0) {
- emit dataChanged(this->index(index, column), this->index(index, column));
+ for (size_t row = 0; row < clips.size(); ++row) {
+ uint64_t id = clips[row].id;
+ if (current_progress.count(id) || old_progress.count(id)) {
+ emit dataChanged(this->index(row, column), this->index(row, column));