Module: deluge
Branch: master
Commit: c6caae848fcdff1b03b59720961f31f550a8216c

Author: Andrew Resch <[email protected]>
Date:   Sat Mar 20 20:54:36 2010 -0700

Fix another problem with component change

---

 deluge/pluginmanagerbase.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/deluge/pluginmanagerbase.py b/deluge/pluginmanagerbase.py
index b2868b6..636ab94 100644
--- a/deluge/pluginmanagerbase.py
+++ b/deluge/pluginmanagerbase.py
@@ -140,7 +140,7 @@ class PluginManagerBase:
                 continue
             instance.enable()
             if self._component_state == "Started":
-                component.start(instance.plugin.get_component_name())
+                component.start(instance.plugin._component_name)
             plugin_name = plugin_name.replace("-", " ")
             self.plugins[plugin_name] = instance
             if plugin_name not in self.config["enabled_plugins"]:
@@ -153,7 +153,7 @@ class PluginManagerBase:
         """Disables a plugin"""
         try:
             self.plugins[name].disable()
-            
component.deregister(self.plugins[name].plugin.get_component_name())
+            component.deregister(self.plugins[name].plugin._component_name)
             del self.plugins[name]
             self.config["enabled_plugins"].remove(name)
         except KeyError:

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