From d5a479461012fa12e32c3117b80cab8f7691c738 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 29 Dec 2008 20:06:08 +0000 Subject: [PATCH] - Fixed priority display for paused torrents --- src/downloadingTorrents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index 52135e9b9..fd659804f 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -489,8 +489,6 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) { added = true; } Q_ASSERT(row != -1); - // No need to update a paused torrent - if(h.is_paused()) return added; // Update Priority if(BTSession->isQueueingEnabled()) { DLListModel->setData(DLListModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(hash))); @@ -514,6 +512,8 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) { return added; } } + // No need to update a paused torrent + if(h.is_paused()) return added; // Parse download state // Setting download state switch(h.state()) {