Author: andar

Revision: 5097

Log:
        Fix issue where cannot resume torrent after doing a 'Pause All'

Diff:
Modified: branches/1.1.0_RC/ChangeLog
===================================================================
--- branches/1.1.0_RC/ChangeLog 2009-04-19 21:40:09 UTC (rev 5096)
+++ branches/1.1.0_RC/ChangeLog 2009-04-20 00:02:36 UTC (rev 5097)
@@ -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

Modified: branches/1.1.0_RC/deluge/core/core.py
===================================================================
--- branches/1.1.0_RC/deluge/core/core.py       2009-04-19 21:40:09 UTC (rev 
5096)
+++ branches/1.1.0_RC/deluge/core/core.py       2009-04-20 00:02:36 UTC (rev 
5097)
@@ -519,11 +519,13 @@
 
     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):

Modified: trunk/deluge/core/core.py
===================================================================
--- trunk/deluge/core/core.py   2009-04-19 21:40:09 UTC (rev 5096)
+++ trunk/deluge/core/core.py   2009-04-20 00:02:36 UTC (rev 5097)
@@ -354,12 +354,14 @@
     @export
     def pause_all_torrents(self):
         """Pause all torrents in the session"""
-        self.session.pause()
+        for torrent in self.torrentmanager.torrents.values():
+            torrent.pause()
 
     @export
     def resume_all_torrents(self):
         """Resume all torrents in the session"""
-        self.session.resume()
+        for torrent in self.torrentmanager.torrents.values():
+            torrent.resume()
         component.get("EventManager").emit(SessionResumedEvent())
 
     @export



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to