mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
treat add+browse as separate windows to fix win32 alt+tab bug
This commit is contained in:
parent
1d751d68ba
commit
667d7dfb38
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ import aqt.editor, aqt.modelchooser
|
|||
class AddCards(QDialog):
|
||||
|
||||
def __init__(self, mw):
|
||||
QDialog.__init__(self, mw, Qt.Window)
|
||||
QDialog.__init__(self, None, Qt.Window)
|
||||
self.mw = mw
|
||||
self.form = aqt.forms.addcards.Ui_Dialog()
|
||||
self.form.setupUi(self)
|
||||
|
|
|
@ -298,7 +298,7 @@ class StatusDelegate(QItemDelegate):
|
|||
class Browser(QMainWindow):
|
||||
|
||||
def __init__(self, mw):
|
||||
QMainWindow.__init__(self, mw)
|
||||
QMainWindow.__init__(self, None, Qt.Window)
|
||||
applyStyles(self)
|
||||
self.mw = mw
|
||||
self.col = self.mw.col
|
||||
|
|
Loading…
Reference in a new issue