From fb60aa7b6025b74e9d9173bb6a41bdce883b791f Mon Sep 17 00:00:00 2001 From: fuzzgun Date: Wed, 15 May 2013 17:36:30 +0100 Subject: [PATCH] Use showMaximized --- src/bitmessageqt/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index e6c84cb6..67121a28 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -465,13 +465,11 @@ class MyForm(QtGui.QMainWindow): self.setWindowFlags(Qt.Window) self.show() self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) - self.activateWindow() else: - self.show() - self.setWindowState(self.windowState() & QtCore.Qt.WindowMaximized) + self.showMaximized() #Here is what I believe might be required for darwin: #self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) - #self.activateWindow() + self.activateWindow() # pointer to the application