summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/mainwindow.py
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2014-04-11 10:06:36 -0300
committerTomás Touceda <chiiph@leap.se>2014-04-11 10:06:36 -0300
commit3dd0620c2966f8a1b918e76244641aa8b3a85664 (patch)
tree78be72bc2faa22ef2fd708eed9171dd97b4049b3 /src/leap/bitmask/gui/mainwindow.py
parent2fc055aed796dbdcf93566926693ea00272f284a (diff)
parentd0797917bc516a44b2201251c2032d7231637d8a (diff)
Merge remote-tracking branch 'refs/remotes/ivan/feature/hide-mainwindow-on-quit' into develop
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 5abfaa67..f097faca 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -2041,6 +2041,15 @@ class MainWindow(QtGui.QMainWindow):
# TODO separate the shutting down of services from the
# UI stuff.
+ # first thing to do quitting, hide the mainwindow and show tooltip.
+ self.hide()
+ self._systray.showMessage(
+ self.tr('Quitting...'),
+ self.tr('The app is quitting, please wait.'))
+
+ # explicitly process events to display tooltip immediately
+ QtCore.QCoreApplication.processEvents()
+
# Set this in case that the app is hidden
QtGui.QApplication.setQuitOnLastWindowClosed(True)