From 8c001aa4782e603e0d56d9cd31b7b246974272fd Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 22 Aug 2010 16:55:57 +0000 Subject: [PATCH] Force progress update of paused torrents too --- src/transferlistwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transferlistwidget.cpp b/src/transferlistwidget.cpp index 67bdafde6..5a994b027 100644 --- a/src/transferlistwidget.cpp +++ b/src/transferlistwidget.cpp @@ -312,6 +312,7 @@ void TransferListWidget::resumeTorrent(int row, bool refresh_list) { } void TransferListWidget::updateMetadata(QTorrentHandle &h) { + if(!h.is_valid()) return; const QString hash = h.hash(); const int row = getRowFromHash(hash); if(row != -1) { @@ -401,6 +402,8 @@ int TransferListWidget::updateTorrent(int row) { } if(h.is_paused()) { + // XXX: Force progress update because of bug #621381 + listModel->setData(listModel->index(row, TR_PROGRESS), QVariant((double)h.progress())); if(h.is_seed()) return STATE_PAUSED_UP; return STATE_PAUSED_DL;