From 32855f6f5459932ccf934eace026d98e3eb3367c Mon Sep 17 00:00:00 2001 From: Alfonso Montero Date: Sat, 12 Mar 2022 19:39:54 +0100 Subject: [PATCH] Apply @arsenetar's proposed change to fix for errors on window change event. Solves #937. --- qt/tabbed_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/tabbed_window.py b/qt/tabbed_window.py index 2c6e2958..750a95a1 100644 --- a/qt/tabbed_window.py +++ b/qt/tabbed_window.py @@ -221,7 +221,7 @@ class TabWindow(QMainWindow): super().showEvent(event) def changeEvent(self, event): - if event.type() == QEvent.Type.WindowStateChange and not self.isMaximized(): + if event.type() == QEvent.WindowStateChange and not self.isMaximized(): move_to_screen_center(self) super().changeEvent(event)