From f6826a4f482ab2251ceea4b7c1e08fe76e0ca58b Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 30 Apr 2011 20:45:15 +0100 Subject: [PATCH] Fix #1822 Only query the core for the known accounts if connected to it. --- deluge/ui/gtkui/preferences.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index d40e486ab..74c00c80e 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