mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
- Make sure priority column stays sorted when changing torrents priority (closes #417829)
This commit is contained in:
parent
d02aca7323
commit
d4d0a08390
3 changed files with 12 additions and 1 deletions
|
@ -1351,6 +1351,9 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||
BTSession->increaseDlTorrentPriority(hash);
|
||||
}
|
||||
updateLists();
|
||||
// Update sorting if necessary
|
||||
if(downloadingTorrentTab->isPriorityColumnSorted())
|
||||
downloadingTorrentTab->sortDownloadList();
|
||||
}
|
||||
|
||||
void GUI::on_actionDecreasePriority_triggered() {
|
||||
|
@ -1360,6 +1363,9 @@ GUI::GUI(QWidget *parent, QStringList torrentCmdLine) : QMainWindow(parent), dis
|
|||
BTSession->decreaseDlTorrentPriority(hash);
|
||||
}
|
||||
updateLists();
|
||||
// Update sorting if necessary
|
||||
if(downloadingTorrentTab->isPriorityColumnSorted())
|
||||
downloadingTorrentTab->sortDownloadList();
|
||||
}
|
||||
|
||||
// pause selected items in the list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue