summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2014-05-29 12:44:56 -0500
committerKali Kaneko <kali@leap.se>2014-05-29 12:44:56 -0500
commit2174acd89500ebad2c9b3df034d276e0e857b6f8 (patch)
treeb368da8f1999936ecc625aa9b4831d5e2db0b366 /src/leap/bitmask
parentb85d6ed72460f15b6029f36ccfef3bccd57e530c (diff)
change eip status during restarts
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r--src/leap/bitmask/gui/eip_status.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/leap/bitmask/gui/eip_status.py b/src/leap/bitmask/gui/eip_status.py
index 9da231f2..ca209d6a 100644
--- a/src/leap/bitmask/gui/eip_status.py
+++ b/src/leap/bitmask/gui/eip_status.py
@@ -373,11 +373,19 @@ class EIPStatusWidget(QtGui.QWidget):
self.ui.eip_bandwidth.hide()
# XXX FIXME ! ----------------------- this needs to
- # accomodate the messages about firewall up or not.
+ # accomodate the messages about firewall status. Right now
+ # we're assuming it works correctly, but we should test fw
+ # status positively.
# Or better call it from the conductor...
- self.ui.lblEIPMessage.setText(
- self.tr("Traffic is being routed in the clear"))
+ clear_traffic = self.tr("Traffic is being routed in the clear")
+ unreachable_net = self.tr("Network is unreachable")
+
+ if restart:
+ msg = unreachable_net
+ else:
+ msg = clear_traffic
+ self.ui.lblEIPMessage.setText(msg)
self.ui.lblEIPStatus.show()
@QtCore.Slot(dict)