Browse Source

- BUGFIX: Fixed progress column delayed sorting (after torrent finished checking)

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
8b26b7fd48
  1. 1
      TODO
  2. 5
      src/FinishedTorrents.cpp
  3. 7
      src/bittorrent.cpp

1
TODO

@ -69,6 +69,7 @@ LANGUAGES UPDATED: @@ -69,6 +69,7 @@ LANGUAGES UPDATED:
beta4->beta5 changelog:
- BUGFIX: Wait for torrent_paused_alert before saving fast resume data
- BUGFIX: Fixed progress column delayed sorting (after torrent finished checking)
- BUGFIX: Finished torrents were still displayed as checking when paused by libtorrent on full disk (hit an assert)
- I18N: Updated Italian translation
- COSMETIC: Changed the way progress bars are rendered

5
src/FinishedTorrents.cpp

@ -185,6 +185,11 @@ void FinishedTorrents::updateFinishedList(){ @@ -185,6 +185,11 @@ void FinishedTorrents::updateFinishedList(){
continue;
}
}
if(BTSession->getUncheckedTorrentsList().indexOf(hash) != -1){
if(torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking){
BTSession->setTorrentFinishedChecking(hash);
}
}
if(h.is_paused()) continue;
if(torrentStatus.state == torrent_status::downloading || (torrentStatus.state != torrent_status::checking_files && torrentStatus.state != torrent_status::queued_for_checking && torrentStatus.progress != 1.)) {
// What are you doing here? go back to download tab!

7
src/bittorrent.cpp

@ -79,14 +79,15 @@ bittorrent::bittorrent(){ @@ -79,14 +79,15 @@ bittorrent::bittorrent(){
bittorrent::~bittorrent(){
// Disable directory scanning
disableDirectoryScanning();
// Do some saving
saveDHTEntry();
saveFastResumeAndRatioData();
// Delete our objects
delete deleter;
delete timerAlerts;
delete ETARefresher;
delete downloader;
// Do some saving
saveDHTEntry();
saveFastResumeAndRatioData();
// Delete BT session
delete s;
}

Loading…
Cancel
Save