Module: deluge
Branch: master
Commit: 10816cb8f408212686a744e697a2fb078ba432cc

Author: Nick Lanham <[email protected]>
Date:   Tue Feb 22 12:32:32 2011 +0100

always have a torrents list, in case get_torrent_name gets called from a mode 
without get_torrent_name in new ui

---

 deluge/ui/console/main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/console/main.py b/deluge/ui/console/main.py
index 31692af..8114dbb 100644
--- a/deluge/ui/console/main.py
+++ b/deluge/ui/console/main.py
@@ -279,9 +279,9 @@ Please use commands from the command line, eg:\n
 
     def start(self):
         # Maintain a list of (torrent_id, name) for use in tab completion
+        self.torrents = []
         if not self.interactive:
             self.started_deferred = defer.Deferred()
-            self.torrents = []
             def on_session_state(result):
                 def on_torrents_status(torrents):
                     for torrent_id, status in torrents.items():

-- 
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