diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-12-29 14:56:43 -0600 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-12-29 14:56:43 -0600 |
| commit | 87c6b019bc3fa346fc1456b99713d4c1b01cf9cd (patch) | |
| tree | 8b8696ffe60164d862b7b17b72818b0b2bef1cf7 /src/downloadlist.cpp | |
| parent | 5fc107cdb253f5266a4f0725fd84b6e1893026b3 (diff) | |
Fix for download list refreshing, courtesy of bshd
Diffstat (limited to 'src/downloadlist.cpp')
| -rw-r--r-- | src/downloadlist.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/downloadlist.cpp b/src/downloadlist.cpp index 1e31973d..f470e57b 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);
}
|
