From 8404eec30195eec38820a7891a90ce03bd2e729d Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 26 Aug 2007 19:52:10 +0000 Subject: [PATCH] - Force progress update in download list before calling sort function to make it more reliable --- TODO | 1 + src/GUI.cpp | 1 + src/downloadingTorrents.h | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index 16a547a4d..ac60a6ef1 100644 --- a/TODO +++ b/TODO @@ -79,3 +79,4 @@ beta5->beta6 changelog: - BUGFIX: Made torrent deletion from hard-drive safer - BUGFIX: Fixed a bug when switching from finished to downloading list - BUGFIX: Showing checking progress for paused torrents too +- BUGFIX: Fixed progress column sorting on startup diff --git a/src/GUI.cpp b/src/GUI.cpp index 8c5be1e26..641ad6d76 100644 --- a/src/GUI.cpp +++ b/src/GUI.cpp @@ -234,6 +234,7 @@ void GUI::torrentChecked(QString hash) { } if(!BTSession->isFinished(hash)){ // Delayed Sorting + downloadingTorrentTab->updateFileSizeAndProgress(hash); downloadingTorrentTab->sortProgressColumnDelayed(); } } diff --git a/src/downloadingTorrents.h b/src/downloadingTorrents.h index d2edab888..99592a709 100644 --- a/src/downloadingTorrents.h +++ b/src/downloadingTorrents.h @@ -75,7 +75,6 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{ void torrentAdded(QString path, QTorrentHandle& h, bool fastResume); void torrentDuplicate(QString path); void torrentCorrupted(QString path); - void updateFileSizeAndProgress(QString hash); void portListeningFailure(); void setRowColor(int row, QString color); void displayDownloadingUrlInfos(QString url); @@ -91,6 +90,7 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{ void setBottomTabEnabled(unsigned int index, bool b); void propertiesSelection(); void sortProgressColumnDelayed(); + void updateFileSizeAndProgress(QString hash); };