diff options
author | Kali Kaneko <kali@leap.se> | 2013-08-09 18:18:00 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-08-09 18:18:00 +0200 |
commit | e3758f91f58d3a17032860bb17e1643c331c3b0f (patch) | |
tree | 7fb9d8e5a675a093443a4224b0fd70c26d437b0c /src/leap/gui/login.py | |
parent | 275109e17f53c2fceb21d6f87626762800f53e22 (diff) | |
parent | b942468aac94be2bf4bb9bc1849391e72c366697 (diff) |
Merge remote-tracking branch 'chiiph/feature/relnotes' into develop
Diffstat (limited to 'src/leap/gui/login.py')
-rw-r--r-- | src/leap/gui/login.py | 6 |
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 |