From 88ce2c43fbdc6469261cedb06dc79621021dadfe Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 16 Dec 2015 21:41:44 +0100 Subject: [PATCH] Main Window raising fixes On OSX and linux, the tray icon now raises window. Starting a new instance should raise the window too, but it may not work on linux (on my Ubuntu it just flashes the icon) Fixes Bitmessage#743 --- src/bitmessageqt/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index d031e06b..3fab5bda 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -841,6 +841,7 @@ class MyForm(settingsmixin.SMainWindow): self.show() self.setWindowState( self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) + self.raise_() self.activateWindow() # pointer to the application @@ -857,7 +858,7 @@ class MyForm(settingsmixin.SMainWindow): return if not self.actionShow.isChecked(): self.actionShow.setChecked(True) - self.appIndicatorShowOrHideWindow() + self.appIndicatorShowOrHideWindow() # unchecks the show item on the application indicator def appIndicatorHide(self):