mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
fix regression in showInfo() et al
This commit is contained in:
parent
66cbc87580
commit
2e70c56248
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def showInfo(text, parent=False, help="", type="info", title="Anki", textFormat=
|
||||||
mb.setTextFormat(Qt.PlainText)
|
mb.setTextFormat(Qt.PlainText)
|
||||||
elif textFormat == "rich":
|
elif textFormat == "rich":
|
||||||
mb.setTextFormat(Qt.RichText)
|
mb.setTextFormat(Qt.RichText)
|
||||||
else:
|
elif textFormat is not None:
|
||||||
raise Exception("unexpected textFormat type")
|
raise Exception("unexpected textFormat type")
|
||||||
mb.setText(text)
|
mb.setText(text)
|
||||||
mb.setIcon(icon)
|
mb.setIcon(icon)
|
||||||
|
|
Loading…
Reference in a new issue