mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 14:47:12 -05:00
Merge pull request #86 from julienbaley/duplicate_browser
Remember state of Browser/AddCards window if already open
This commit is contained in:
commit
83e8694740
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ class DialogManager(object):
|
||||||
def open(self, name, *args):
|
def open(self, name, *args):
|
||||||
(creator, instance) = self._dialogs[name]
|
(creator, instance) = self._dialogs[name]
|
||||||
if instance:
|
if instance:
|
||||||
instance.setWindowState(Qt.WindowActive)
|
instance.setWindowState(instance.windowState() | Qt.WindowActive)
|
||||||
instance.activateWindow()
|
instance.activateWindow()
|
||||||
instance.raise_()
|
instance.raise_()
|
||||||
return instance
|
return instance
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue