summaryrefslogtreecommitdiff
path: root/src/leap/baseapp/mainwindow.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-10-10 05:03:31 +0900
committerkali <kali@leap.se>2012-10-10 05:03:31 +0900
commit48792fa7c25530776b871098fd07b600bfc976ba (patch)
tree687c2273968dc3a11118706f68621136626ab316 /src/leap/baseapp/mainwindow.py
parent0d17f1accabdf77ed5d227fdc4e2b329b3267527 (diff)
fix connect/disconnect button in debug mode
Closes #730
Diffstat (limited to 'src/leap/baseapp/mainwindow.py')
-rw-r--r--src/leap/baseapp/mainwindow.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/leap/baseapp/mainwindow.py b/src/leap/baseapp/mainwindow.py
index bf42f0e7..2348c27d 100644
--- a/src/leap/baseapp/mainwindow.py
+++ b/src/leap/baseapp/mainwindow.py
@@ -50,6 +50,9 @@ class LeapWindow(QtGui.QMainWindow,
MainWindowMixin.__init__(self)
settings = QtCore.QSettings()
+ # XXX geom_key = "DebugGeometry" if self.debugmode else "Geometry"
+ #geom = settings.value(geom_key)
+
geom = settings.value("Geometry")
if geom:
self.restoreGeometry(geom)
@@ -68,6 +71,10 @@ class LeapWindow(QtGui.QMainWindow,
self.networkError.connect(
lambda exc: self.onNetworkError(exc))
+ if self.debugmode:
+ self.startStopButton.clicked.connect(
+ lambda: self.start_or_stopVPN())
+
# status change.
# TODO unify
self.statusChange.connect(