summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/login.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-01-13 14:20:33 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-01-13 14:20:33 -0300
commit24e7c4f505d92164187c8afe038b24c67e2bdedc (patch)
tree64b8ec7eda2b018dc9f2cb97c03a0c369e81c144 /src/leap/bitmask/gui/login.py
parent5b07c229c6dd507e910f1086af5706b3710f6127 (diff)
Use set_status for all messages.
Remove set_login_status since it's a remaining code after split the login in a separated widget. [Closes #4942]
Diffstat (limited to 'src/leap/bitmask/gui/login.py')
-rw-r--r--src/leap/bitmask/gui/login.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/leap/bitmask/gui/login.py b/src/leap/bitmask/gui/login.py
index d0cb20b1..8a7c6996 100644
--- a/src/leap/bitmask/gui/login.py
+++ b/src/leap/bitmask/gui/login.py
@@ -327,7 +327,6 @@ class LoginWidget(QtGui.QWidget):
self.ui.logged_widget.show()
self.ui.lblUser.setText(make_address(
self.get_user(), self.get_selected_provider()))
- self.set_login_status("")
if flags.OFFLINE is False:
self.logged_in_signal.emit()
@@ -346,22 +345,6 @@ class LoginWidget(QtGui.QWidget):
self.set_enabled(True)
self.set_status("", error=False)
- def set_login_status(self, msg, error=False):
- """
- Sets the status label for the logged in state.
-
- :param msg: status message
- :type msg: str or unicode
- :param error: if the status is an erroneous one, then set this
- to True
- :type error: bool
- """
- leap_assert_type(error, bool)
- if error:
- msg = "<font color='red'><b>%s</b></font>" % (msg,)
- self.ui.lblLoginStatus.setText(msg)
- self.ui.lblLoginStatus.show()
-
def start_logout(self):
"""
Sets the widgets to the logging out state