summaryrefslogtreecommitdiff
path: root/nephilim/connect_wg.py
diff options
context:
space:
mode:
Diffstat (limited to 'nephilim/connect_wg.py')
-rw-r--r--nephilim/connect_wg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/connect_wg.py b/nephilim/connect_wg.py
index 888eef1..8df84f1 100644
--- a/nephilim/connect_wg.py
+++ b/nephilim/connect_wg.py
@@ -28,9 +28,9 @@ class ConnectWidget(QtGui.QWidget):
mpclient = None
settings = None
- def __init__(self, parent):
+ def __init__(self):
QtGui.QWidget.__init__(self)
- self.mpclient = parent.mpclient
+ self.mpclient = QtGui.QApplication.instance().mpclient
self.settings = QtCore.QSettings()
self.host_txt = QtGui.QLineEdit(self.settings.value('MPD/host', QVariant('localhost')).toString())