diff options
author | Andrew Resch <andrewresch@gmail.com> | 2009-04-20 00:02:36 +0000 |
---|---|---|
committer | Andrew Resch <andrewresch@gmail.com> | 2009-04-20 00:02:36 +0000 |
commit | d14062f724093eb62e391783b9f90940dfbd9259 (patch) | |
tree | d74dbf89e92aca6539456aa07991145a6e697922 | |
parent | f77d678788e30db4ea83e4271e0a63af7feb1cf6 (diff) | |
download | deluge-d14062f724093eb62e391783b9f90940dfbd9259.tar.gz deluge-d14062f724093eb62e391783b9f90940dfbd9259.tar.bz2 deluge-d14062f724093eb62e391783b9f90940dfbd9259.zip |
Fix issue where cannot resume torrent after doing a 'Pause All'
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | deluge/core/core.py | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,7 @@ === Deluge 1.1.7 - (In Development) === +==== Core ==== + * Fix issue where cannot resume torrent after doing a 'Pause All' + ==== GtkUI ==== * Fix #883 segfault if locale is not using UTF-8 encoding * Fix for adding torrents with invalid filename encodings diff --git a/deluge/core/core.py b/deluge/core/core.py index 0b724189d..9c0ce2c08 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -519,11 +519,13 @@ class Core( def export_pause_all_torrents(self): """Pause all torrents in the session""" - self.session.pause() + for torrent in self.torrentmanager.torrents.values(): + torrent.pause() def export_resume_all_torrents(self): """Resume all torrents in the session""" - self.session.resume() + for torrent in self.torrentmanager.torrents.values(): + torrent.resume() self.signals.emit("torrent_all_resumed") def export_resume_torrent(self, torrent_ids): |