mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
fix parent assignment
This commit is contained in:
parent
8d2363203c
commit
4d6c727d7b
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class GetTextDialog(QDialog):
|
|||
|
||||
def getText(prompt, parent=None, help=None, edit=None, default=u"", title="Anki"):
|
||||
if not parent:
|
||||
parent = aqt.mw.app.activeWindow() or aqt.mw.app.mw
|
||||
parent = aqt.mw.app.activeWindow() or aqt.mw
|
||||
d = GetTextDialog(parent, prompt, help=help, edit=edit,
|
||||
default=default, title=title)
|
||||
d.setWindowModality(Qt.WindowModal)
|
||||
|
|
Loading…
Reference in a new issue