summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-01-07 18:25:21 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-01-09 14:27:41 -0300
commit74397ee78ab7f01cb622b0e06b3de901a3604f0b (patch)
tree94739dfba9f50652d7907faaa019b4b55ab8e0da /src/leap/bitmask/gui
parentdf0d02a565631693f62e99abb2b4be8b8bd450f5 (diff)
Warn the user if is using an old app version.
[Closes #4636]
Diffstat (limited to 'src/leap/bitmask/gui')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index f954006d..69cb4169 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -380,6 +380,9 @@ class MainWindow(QtGui.QMainWindow):
partial(self._login_widget.set_status,
self.tr("Unable to login: Problem with provider")))
+ self._backend.signaler.prov_unsupported_client.connect(
+ self._needs_update)
+
def _backend_disconnect(self):
"""
Helper to disconnect from backend signals.
@@ -856,6 +859,18 @@ class MainWindow(QtGui.QMainWindow):
"<a href='https://leap.se'>More about LEAP"
"</a>") % (VERSION, VERSION_HASH[:10], greet))
+ def _needs_update(self):
+ """
+ Display a warning dialog to inform the user that the app needs update.
+ """
+ url = "https://dl.bitmask.net/"
+ msg = self.tr(
+ "The current client version is not supported "
+ "by this provider.<br>"
+ "Please update to latest version.<br><br>"
+ "You can get the latest version from {0}").format(url)
+ QtGui.QMessageBox.warning(self, self.tr("Update Needed"), msg)
+
def changeEvent(self, e):
"""
Reimplements the changeEvent method to minimize to tray