summaryrefslogtreecommitdiff
path: root/nephilim/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/plugin.py')
-rw-r--r--nephilim/plugin.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/nephilim/plugin.py b/nephilim/plugin.py
index dcbd1a0..86a379c 100644
--- a/nephilim/plugin.py
+++ b/nephilim/plugin.py
@@ -5,7 +5,7 @@ import logging
import plugins
from misc import *
-class Plugin:
+class Plugin(QtCore.QObject):
_name = None
_dock_widget = None
_settings = None
@@ -14,9 +14,9 @@ class Plugin:
_parent = None
_mpclient = None
DEFAULTS = {}
- LISTENERS = {}
def __init__(self, parent, mpclient, name):
+ QtCore.QObject.__init__(self)
self._name = name
self._parent = parent
self._mpclient = mpclient
@@ -31,8 +31,6 @@ class Plugin:
self._settings.setValue(key, QVariant(self.DEFAULTS[key]))
self._settings.endGroup()
- for event, listener in self.LISTENERS.iteritems():
- self._listeners.append([event, eval('self.%s'%listener)])
def name(self):
return self._name