From 88f0ffe86d76345b8013125ba0b73bf1e5087496 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 3 Jan 2009 19:34:09 +0000 Subject: [PATCH] - Fixed column sorting restoring on startup --- src/FinishedTorrents.cpp | 2 ++ src/downloadingTorrents.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/FinishedTorrents.cpp b/src/FinishedTorrents.cpp index 813516c36..4a69c49fe 100644 --- a/src/FinishedTorrents.cpp +++ b/src/FinishedTorrents.cpp @@ -119,6 +119,8 @@ void FinishedTorrents::addTorrent(QString hash){ // Update the number of finished torrents ++nbFinished; emit finishedTorrentsNumberChanged(nbFinished); + // Sort List + sortFinishedList(); } // Set the color of a row in data model diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index a722d4042..b9cf4eecf 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -589,6 +589,8 @@ void DownloadingTorrents::addTorrent(QString hash) { } ++nbTorrents; emit unfinishedTorrentsNumberChanged(nbTorrents); + // sort List + sortDownloadList(); } void DownloadingTorrents::sortDownloadListFloat(int index, Qt::SortOrder sortOrder) {