- Make sure priority column stays sorted when changing torrents priority (closes #417829)

This commit is contained in:
Christophe Dumez
2009-08-24 03:03:06 +00:00
parent d02aca7323
commit d4d0a08390
3 changed files with 12 additions and 1 deletions

View File

@@ -718,6 +718,10 @@ void DownloadingTorrents::sortProgressColumn(QTorrentHandle& h) {
}
}
bool DownloadingTorrents::isPriorityColumnSorted() {
return (downloadList->header()->sortIndicatorSection() == PRIORITY);
}
void DownloadingTorrents::sortDownloadList(int index, Qt::SortOrder sortOrder) {
if(index == -1) {
index = downloadList->header()->sortIndicatorSection();