summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorProject579 <star579avatar@gmail.com>2018-12-29 22:17:00 +0100
committerProject579 <star579avatar@gmail.com>2018-12-30 11:22:08 +0100
commitb842eb1ca377501e6ca2cb387168536f87e1c6d9 (patch)
tree8bc133ced691b3fa3e685353debf49366bd9058c /src
parentb525ee392f9f79f8e4bde899778f19a0a1a240eb (diff)
Fix for download list refreshing, courtesy of bshd
Diffstat (limited to 'src')
-rw-r--r--src/downloadlist.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp
index 1e31973d..77c5973b 100644
--- a/src/downloadlist.cpp
+++ b/src/downloadlist.cpp
@@ -106,8 +106,7 @@ void DownloadList::update(int row)
if (row < 0) {
emit endResetModel();
} else if (row < this->rowCount()) {
-#pragma message("updating only the one column is a hack")
- emit dataChanged(this->index(row, 2, QModelIndex()), this->index(row, 2, QModelIndex()));
+ emit dataChanged(this->index(row, 0, QModelIndex()), this->index(row, this->columnCount(QModelIndex())-1, QModelIndex()));
} else {
qCritical("invalid row %d in download list, update failed", row);
}