diff --git a/aqt/__init__.py b/aqt/__init__.py index f6c0bf2fb..61aa24158 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -53,7 +53,7 @@ class DialogManager(object): def open(self, name, *args): (creator, instance) = self._dialogs[name] if instance: - instance.setWindowState(Qt.WindowActive) + instance.setWindowState(instance.windowState() | Qt.WindowActive) instance.activateWindow() instance.raise_() return instance @@ -253,4 +253,4 @@ environment points to a valid, writable folder.""") # load the main window import aqt.main mw = aqt.main.AnkiQt(app, pm, args) - app.exec_() \ No newline at end of file + app.exec_()