summaryrefslogtreecommitdiff
path: root/src/leap/gui/login.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-08-07 15:46:58 -0300
committerTomás Touceda <chiiph@leap.se>2013-08-07 15:46:58 -0300
commit2d76c3c97d03d937f238f4ccab633f8db6b77ba7 (patch)
treec1d96026c5349c34dbf12e736a206f833e152391 /src/leap/gui/login.py
parent77e5ed38b2bc90799d691f159ed815d78c648dec (diff)
parent7f252785df20f395cb740a8cca79e70943431748 (diff)
Merge remote-tracking branch 'ivan/bug/3401_login-fail-left-ui-inconsistent' into develop
Diffstat (limited to 'src/leap/gui/login.py')
-rw-r--r--src/leap/gui/login.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/leap/gui/login.py b/src/leap/gui/login.py
index 3c994597..de0b2d50 100644
--- a/src/leap/gui/login.py
+++ b/src/leap/gui/login.py
@@ -197,18 +197,18 @@ class LoginWidget(QtGui.QWidget):
"""
self.ui.lnUser.setEnabled(enabled)
self.ui.lnPassword.setEnabled(enabled)
- self.ui.btnLogin.setEnabled(enabled)
self.ui.chkRemember.setEnabled(enabled)
self.ui.cmbProviders.setEnabled(enabled)
- def set_cancel(self, enabled=False):
+ self._set_cancel(not enabled)
+
+ def _set_cancel(self, enabled=False):
"""
Enables or disables the cancel action in the "log in" process.
:param enabled: wether it should be enabled or not
:type enabled: bool
"""
- self.ui.btnLogin.setEnabled(enabled)
text = self.tr("Cancel")
login_or_cancel = self.cancel_login