summaryrefslogtreecommitdiff
path: root/src/leap/gui/login.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-06-21 15:31:24 -0300
committerTomás Touceda <chiiph@leap.se>2013-06-21 15:38:37 -0300
commit440f2036e36985e9536644b28af0e62cea8704eb (patch)
tree525ae3a14c12b63f98c4c2fd8b4fdc3f09247b2e /src/leap/gui/login.py
parent4cfe344fceb16d19936fa8d0d2f6bdaa7e747740 (diff)
Disable remembering when not using a proper keyring backend
Diffstat (limited to 'src/leap/gui/login.py')
-rw-r--r--src/leap/gui/login.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/leap/gui/login.py b/src/leap/gui/login.py
index c367b2fb..8fc6ec24 100644
--- a/src/leap/gui/login.py
+++ b/src/leap/gui/login.py
@@ -24,6 +24,8 @@ import keyring
from PySide import QtCore, QtGui
from ui_login import Ui_LoginWidget
+from leap.util.keyring_helpers import has_keyring
+
logger = logging.getLogger(__name__)
@@ -58,7 +60,7 @@ class LoginWidget(QtGui.QWidget):
self.ui.chkRemember.stateChanged.connect(
self._remember_state_changed)
- self.ui.chkRemember.setEnabled(keyring.get_keyring() is not None)
+ self.ui.chkRemember.setEnabled(has_keyring())
self.ui.lnPassword.setEchoMode(QtGui.QLineEdit.Password)