mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
info/warning/etc need to be be application modal
WindowModal was allowing multiple popups in the browser on Windows: https://anki.tenderapp.com/discussions/beta-testing/1378-error-does-not-go-away
This commit is contained in:
parent
de38313071
commit
488c867afb
1 changed files with 0 additions and 1 deletions
|
|
@ -40,7 +40,6 @@ def showInfo(text, parent=False, help="", type="info", title="Anki"):
|
||||||
mb = QMessageBox(parent)
|
mb = QMessageBox(parent)
|
||||||
mb.setText(text)
|
mb.setText(text)
|
||||||
mb.setIcon(icon)
|
mb.setIcon(icon)
|
||||||
mb.setWindowModality(Qt.WindowModal)
|
|
||||||
mb.setWindowTitle(title)
|
mb.setWindowTitle(title)
|
||||||
b = mb.addButton(QMessageBox.Ok)
|
b = mb.addButton(QMessageBox.Ok)
|
||||||
b.setDefault(True)
|
b.setDefault(True)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue