fix incorrect qt constructor call

This commit is contained in:
Damien Elmes 2019-03-04 15:59:53 +10:00
parent ef23268573
commit 7755eb408c

View File

@ -124,7 +124,7 @@ def askUser(text, parent=None, help="", defaultno=False, msgfunc=None, \
class ButtonedDialog(QMessageBox):
def __init__(self, text, buttons, parent=None, help="", title="Anki"):
QDialog.__init__(self, parent)
QMessageBox.__init__(self, parent)
self.buttons = []
self.setWindowTitle(title)
self.help = help