Browse Source

- Fixed priority display for paused torrents

adaptive-webui-19844
Christophe Dumez 16 years ago
parent
commit
d5a4794610
  1. 4
      src/downloadingTorrents.cpp

4
src/downloadingTorrents.cpp

@ -489,8 +489,6 @@ bool DownloadingTorrents::updateTorrent(QTorrentHandle h) { @@ -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) { @@ -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()) {

Loading…
Cancel
Save