summaryrefslogtreecommitdiff
path: root/src/leap/gui/mainwindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/gui/mainwindow.py')
-rw-r--r--src/leap/gui/mainwindow.py8
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()