diff options
Diffstat (limited to 'nephilim/plugins/Filebrowser.py')
-rw-r--r-- | nephilim/plugins/Filebrowser.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/nephilim/plugins/Filebrowser.py b/nephilim/plugins/Filebrowser.py index 5faa678..71969eb 100644 --- a/nephilim/plugins/Filebrowser.py +++ b/nephilim/plugins/Filebrowser.py @@ -7,9 +7,6 @@ from ..misc import ORGNAME, APPNAME class Filebrowser(Plugin): o = None - def __init__(self, winMain): - Plugin.__init__(self, winMain, 'Filebrowser') - def _load(self): self.o = wgFilebrowser(self) @@ -19,8 +16,8 @@ class Filebrowser(Plugin): def getInfo(self): return 'A file browser that allows adding files not in collection.' - def _getDockWidget(self): - return self._createDock(self.o) + def _get_dock_widget(self): + return self._create_dock(self.o) class wgFilebrowser(QtGui.QWidget): view = None @@ -56,13 +53,13 @@ class wgFilebrowser(QtGui.QWidget): self.view.setRootIndex(index) self.path.setText(self.model.filePath(index)) else: - if not 'file://' in self.plugin.mpclient.urlhandlers(): - self.setStatus('file:// handler not available. Connect via unix domain sockets.') + if not 'file://' in self.plugin.mpclient()().urlhandlers(): + self.set_status('file:// handler not available. Connect via unix domain sockets.') return paths = [] for index in self.view.selectedIndexes(): paths.append(u'file://' + unicode(self.model.filePath(index))) - self.plugin.mpclient.add(paths) + self.plugin.mpclient()().add(paths) def path_changed(self): if os.path.isdir(self.path.text()): |