From 620deb3b6aa07366de1e8fe10ae89e21705d2f98 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 29 Jul 2007 01:44:49 +0000 Subject: [PATCH] - Fixed a problem that happened sometimes with torrents to pause after checking --- TODO | 6 +++++- src/bittorrent.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index b4e5bcfc0..ce6dd5650 100644 --- a/TODO +++ b/TODO @@ -18,17 +18,18 @@ // Unsure - Azureus spoofing to prevent ban from trackers? -- Web interface? - Option to shutdown computer when downloads are finished - Add a torrent scheduler - Make use of dbus on Linux for the single instance instead of socket communication? (http://techbase.kde.org/Development/Tutorials/D-Bus/Accessing_Interfaces) +- search engines customizing // in v1.1.0 - Tabs support in search - Have a look at libcommoncpp2 to see if it can be useful for other stuff than url downloading - Allow to hide columns? - Allow to scan multiple directories? +- Web interface (turbogears?) // in v1.0.0 (partial) - WIP - Check storage st creation + hasher in torrent creation @@ -38,10 +39,13 @@ - update sorting when a new torrent is added? - Add a checking icon in dl list to differenciate from connecting. - Complete documentation and english translation +- support zipped torrents? * beta3 - Windows port (Chris - Peerkoel) - Translations update - Optimize and cleanup code + - improve and test tracker authentication code (remember login/pass) + - are paused torrents downloaded anyway sometimes? (check this) - Wait for some bug fixes in libtorrent : - upload/download limit per torrent - double free or corruption on exit diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 2876aa155..145e845e3 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -198,11 +198,11 @@ void bittorrent::pauseTorrent(QString hash){ QFile paused_file(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused"); paused_file.open(QIODevice::WriteOnly | QIODevice::Text); paused_file.close(); - int index = torrentsToPauseAfterChecking.indexOf(hash); - if(index != -1) { - torrentsToPauseAfterChecking.removeAt(index); - qDebug("A torrent was paused just after checking, good"); - } + } + int index = torrentsToPauseAfterChecking.indexOf(hash); + if(index != -1) { + torrentsToPauseAfterChecking.removeAt(index); + qDebug("A torrent was paused just after checking, good"); } }