Module: deluge
Branch: chunked-sessionproxy-and-gtkui-speedups
Commit: f6826a4f482ab2251ceea4b7c1e08fe76e0ca58b

Author: Pedro Algarvio <[email protected]>
Date:   Sat Apr 30 20:45:15 2011 +0100

Fix #1822

Only query the core for the known accounts if connected to it.

---

 deluge/ui/gtkui/preferences.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py
index d40e486..74c00c8 100644
--- a/deluge/ui/gtkui/preferences.py
+++ b/deluge/ui/gtkui/preferences.py
@@ -882,7 +882,8 @@ class Preferences(component.Component):
         try:
             if model.get_value(row, 1) == _("Daemon"):
                 # Let's see update the accounts related stuff
-                self._get_accounts_tab_data()
+                if client.connected():
+                    self._get_accounts_tab_data()
             self.notebook.set_current_page(model.get_value(row, 0))
         except TypeError:
             pass

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