summaryrefslogtreecommitdiff
path: root/src/leap/gui
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-04-03 03:22:08 +0900
committerkali <kali@leap.se>2013-04-03 03:22:08 +0900
commit466ccbafb38cf8fd767ed2b88d93c547a4eca9a2 (patch)
treed8ee8216a13a4543252e2486cfe79f22a0ca9f34 /src/leap/gui
parent91a60870e89e565a6136bf6d21b155dc055f4827 (diff)
Do not populate user/pass when deselecting "remember"
Closes: #2059
Diffstat (limited to 'src/leap/gui')
-rw-r--r--src/leap/gui/mainwindow.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index 863640ef..e5efdbed 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -225,6 +225,7 @@ class MainWindow(QtGui.QMainWindow):
def _remember_state_changed(self, state):
self.ui.chkAutoLogin.setEnabled(state == QtCore.Qt.Checked)
+ self._settings.set_remember(bool(state))
def _finish_init(self):
self.ui.cmbProviders.addItems(self._configured_providers())
@@ -249,6 +250,10 @@ class MainWindow(QtGui.QMainWindow):
self._wizard = None
self._settings.set_properprovider(True)
else:
+ if not self._settings.get_remember():
+ # nothing to do here
+ return
+
saved_user = self._settings.get_user()
auto_login = self._settings.get_autologin()