diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:24:23 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-04-09 09:24:23 -0300 |
commit | 01f956f859a94f37aaebf9acc932c26564087ae8 (patch) | |
tree | eca24d5dc5bfe90c1abcea6998e91de578b76b7e /src/leap/gui | |
parent | fb51905d5dde6880a40b551ba185d7932cc1ae07 (diff) | |
parent | bcfdc13f5450e3df695c61c44bf637b18386f31a (diff) |
Merge remote-tracking branch 'kali/bug/deselect-remember' into develop
Diffstat (limited to 'src/leap/gui')
-rw-r--r-- | src/leap/gui/mainwindow.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py index f359d7c1..6a73fb76 100644 --- a/src/leap/gui/mainwindow.py +++ b/src/leap/gui/mainwindow.py @@ -224,7 +224,9 @@ class MainWindow(QtGui.QMainWindow): self._wizard = None def _remember_state_changed(self, state): - self.ui.chkAutoLogin.setEnabled(state == QtCore.Qt.Checked) + enable = True if state == QtCore.Qt.Checked else False + self.ui.chkAutoLogin.setEnabled(enable) + self._settings.set_remember(enable) def _finish_init(self): self.ui.cmbProviders.addItems(self._configured_providers()) @@ -249,6 +251,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() |