From 7a271dccdd3b45b8faf68cd83aa7db99028ceb2f Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Sat, 25 May 2013 13:59:00 -0400 Subject: [PATCH] On Linux, when selecting Show Bitmessage, do not maximize automatically --- src/bitmessageqt/__init__.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 4acd0c36..08ba414e 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -446,12 +446,10 @@ class MyForm(QtGui.QMainWindow): else: if sys.platform[0:3] == 'win': self.setWindowFlags(Qt.Window) - self.show() - self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) - else: - self.showMaximized() - #Here is what I believe might be required for darwin: - #self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) + #else: + #self.showMaximized() + self.show() + self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive) self.activateWindow()