mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix bug in contributed patch
This commit is contained in:
parent
f25a60afff
commit
640d906230
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue