- Force progress update in download list before calling sort function to make it more reliable

This commit is contained in:
Christophe Dumez 2007-08-26 19:52:10 +00:00
parent cc252fc70a
commit 8404eec301
3 changed files with 3 additions and 1 deletions

1
TODO
View File

@ -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

View File

@ -234,6 +234,7 @@ void GUI::torrentChecked(QString hash) {
}
if(!BTSession->isFinished(hash)){
// Delayed Sorting
downloadingTorrentTab->updateFileSizeAndProgress(hash);
downloadingTorrentTab->sortProgressColumnDelayed();
}
}

View File

@ -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);
};