Browse Source

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

adaptive-webui-19844
Christophe Dumez 17 years ago
parent
commit
8404eec301
  1. 1
      TODO
  2. 1
      src/GUI.cpp
  3. 2
      src/downloadingTorrents.h

1
TODO

@ -79,3 +79,4 @@ beta5->beta6 changelog: @@ -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

1
src/GUI.cpp

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

2
src/downloadingTorrents.h

@ -75,7 +75,6 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{ @@ -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{ @@ -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);
};

Loading…
Cancel
Save