From aaafd391a2bfade08c8e4eb255773d29a499dce3 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 27 Aug 2010 17:02:30 +0200 Subject: nephilim_app: create child objects with self as parent --- nephilim/nephilim_app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nephilim/nephilim_app.py b/nephilim/nephilim_app.py index 64a6fd1..da387a7 100644 --- a/nephilim/nephilim_app.py +++ b/nephilim/nephilim_app.py @@ -51,12 +51,15 @@ class NephilimApp(QtGui.QApplication): self.setOrganizationName(ORGNAME) self.setWindowIcon(QtGui.QIcon(appIcon)) + def __str__(self): + return APPNAME + def exec_(self): #init MPD layer - self.mpclient = MPClient() + self.mpclient = MPClient(self) #init settings - self.settings = QtCore.QSettings() + self.settings = QtCore.QSettings(self) #init connection window self._connect_win = ConnectWidget() -- cgit v1.2.3