fix regression in showInfo() et al
This commit is contained in:
parent
66cbc87580
commit
2e70c56248
@ -42,7 +42,7 @@ def showInfo(text, parent=False, help="", type="info", title="Anki", textFormat=
|
||||
mb.setTextFormat(Qt.PlainText)
|
||||
elif textFormat == "rich":
|
||||
mb.setTextFormat(Qt.RichText)
|
||||
else:
|
||||
elif textFormat is not None:
|
||||
raise Exception("unexpected textFormat type")
|
||||
mb.setText(text)
|
||||
mb.setIcon(icon)
|
||||
|
Loading…
Reference in New Issue
Block a user