Author: andar

Revision: 5481

Log:
        Fix opening the preferences window when not connected to a daemon

Diff:
Modified: trunk/deluge/ui/gtkui/preferences.py
===================================================================
--- trunk/deluge/ui/gtkui/preferences.py        2009-07-13 18:04:26 UTC (rev 
5480)
+++ trunk/deluge/ui/gtkui/preferences.py        2009-07-13 18:26:40 UTC (rev 
5481)
@@ -418,7 +418,8 @@
                 "spin_seed_time_ratio_limit",
                 "spin_seed_time_limit",
                 "spin_cache_size",
-                "spin_cache_expiry"
+                "spin_cache_expiry",
+                "button_cache_refresh"
             ]
             for t in ("peer", "web_seed", "tracker", "dht"):
                 core_widget_list.append("spin_proxy_port_%s" % t)
@@ -489,7 +490,8 @@
             self.glade.get_widget("rad_ntf_tls").set_active(True)
 
         ## Cache tab ##
-        self.__update_cache_status()
+        if client.connected():
+            self.__update_cache_status()
 
         ## Plugins tab ##
         all_plugins = self.all_plugins



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