Fix #842 some exceptions when disconnecting/reconnecting to daemon

This commit is contained in:
Andrew Resch 2009-03-16 00:46:51 +00:00
parent b0e368c9ab
commit c0f11fbae4
2 changed files with 2 additions and 5 deletions

View File

@ -56,7 +56,7 @@ class LabelMenu(gtk.MenuItem):
def cb_labels(self, labels):
for child in self.sub_menu.get_children():
self.sub_menu.remove(child)
for label in [NO_LABEL] + labels:
for label in [NO_LABEL] + list(labels):
item = gtk.MenuItem(label.replace("_","__"))
item.connect("activate", self.on_select_label, label)
self.sub_menu.append(item)

View File

@ -66,10 +66,7 @@ class PluginManager(deluge.pluginmanagerbase.PluginManagerBase,
self.disable_plugins()
def update(self):
# We call the plugins' update() method every second
for plugin in self.plugins.values():
if hasattr(plugin, "update"):
plugin.update()
pass
def _on_get_enabled_plugins(self, enabled_plugins):
log.debug("Core has these plugins enabled: %s", enabled_plugins)