fix bug in contributed patch

This commit is contained in:
Damien Elmes 2016-05-01 13:32:17 +10:00
parent f25a60afff
commit 640d906230

View file

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