summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-05 04:10:50 +0900
committerkali <kali@leap.se>2012-10-05 04:10:50 +0900
commit51dee24be94567334dfb8765cbd3bb23dcae9ee3 (patch)
tree353978aa2f7fb3b51791ffbcf62bacea8e9c947a /src/leap/baseapp/mainwindow.py
parentc06d7e25649cc76dfe7418a520dc823270a3191f (diff)
init QSettings - save window geometry
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index 55be55f7..d3656cd4 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -30,14 +30,19 @@ class LeapWindow(QtGui.QMainWindow,
def __init__(self, opts):
logger.debug('init leap window')
self.debugmode = getattr(opts, 'debug', False)
-
super(LeapWindow, self).__init__()
if self.debugmode:
self.createLogBrowser()
+
EIPConductorAppMixin.__init__(self, opts=opts)
StatusAwareTrayIconMixin.__init__(self)
MainWindowMixin.__init__(self)
+ settings = QtCore.QSettings()
+ geom = settings.value("Geometry")
+ if geom:
+ self.restoreGeometry(geom)
+
self.initchecks = InitChecksThread(self.run_eip_checks)
# bind signals