Author: andar
Revision: 5486
Log:
Prevent exception when clicking 'Rescan Plugins' button when not
connected to a daemon
Diff:
Modified: trunk/deluge/ui/gtkui/preferences.py
===================================================================
--- trunk/deluge/ui/gtkui/preferences.py 2009-07-13 21:44:21 UTC (rev
5485)
+++ trunk/deluge/ui/gtkui/preferences.py 2009-07-13 21:55:34 UTC (rev
5486)
@@ -948,7 +948,8 @@
def _on_button_rescan_plugins_clicked(self, widget):
component.get("PluginManager").scan_for_plugins()
- client.core.rescan_plugins()
+ if client.connected():
+ client.core.rescan_plugins()
self.show()
def _on_button_find_plugins_clicked(self, widget):
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---