mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 20:58:07 -06:00
- A little list refresh optimizing
This commit is contained in:
@@ -496,6 +496,8 @@ 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)));
|
||||
@@ -519,8 +521,6 @@ 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()) {
|
||||
|
||||
Reference in New Issue
Block a user