summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-03-20 16:44:00 -0300
committerTomás Touceda <chiiph@leap.se>2013-03-20 16:44:00 -0300
commitddbad58fc2b3f44a293eeac7790a06f13b56944a (patch)
tree03b8566f00a64731ed0f74ee61f3d75eb0607f91
parent5be6aba659b8e7db486e985ac1bb98bdae53233f (diff)
Display ASSIGN_IP state correctly in the mainwindow
-rw-r--r--changes/feature_add_vpn_state1
-rw-r--r--src/leap/gui/mainwindow.py5
2 files changed, 5 insertions, 1 deletions
diff --git a/changes/feature_add_vpn_state b/changes/feature_add_vpn_state
new file mode 100644
index 00000000..8a358e30
--- /dev/null
+++ b/changes/feature_add_vpn_state
@@ -0,0 +1 @@
+ o Add handling for ASSIGN_IP state from OpenVPN in the mainwindow. \ No newline at end of file
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index a93b2e3c..eabdfe57 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -699,7 +699,8 @@ class MainWindow(QtGui.QMainWindow):
"""
selected_pixmap = self.ERROR_ICON
tray_message = self.tr("Encryption is OFF")
- if status in ("WAIT", "AUTH", "GET_CONFIG", "RECONNECTING"):
+ if status in ("WAIT", "AUTH", "GET_CONFIG",
+ "RECONNECTING", "ASSIGN_IP"):
selected_pixmap = self.CONNECTING_ICON
elif status in ("CONNECTED"):
tray_message = self.tr("Encryption is ON")
@@ -727,6 +728,8 @@ class MainWindow(QtGui.QMainWindow):
self._set_eip_status(self.tr("VPN: Connected!"))
elif status == "WAIT":
self._set_eip_status(self.tr("VPN: Waiting to start..."))
+ elif status == "ASSIGN_IP":
+ self._set_eip_status(self.tr("VPN: Assigning IP"))
elif status == "ALREADYRUNNING":
# Put the following calls in Qt's event queue, otherwise
# the UI won't update properly