# HG changeset patch # User Goffi # Date 1578151497 -3600 # Node ID 7a171d11eab6a1b55295a9efad8f6e4c8868b2f7 # Parent 89799148f894614e9fd9e2dfd9471b69c0b79af8 xmlui: fixed ConfirmDialog creation: setting properties in init doesn't seems to work anymore, so just setting them just after init. diff -r 89799148f894 -r 7a171d11eab6 cagou/core/xmlui.py --- a/cagou/core/xmlui.py Sat Jan 04 16:24:57 2020 +0100 +++ b/cagou/core/xmlui.py Sat Jan 04 16:24:57 2020 +0100 @@ -415,12 +415,12 @@ class ConfirmDialog(xmlui.ConfirmDialog, dialog.ConfirmDialog): def __init__(self, _xmlui_parent, title, message, level, buttons_set): - dialog.ConfirmDialog.__init__(self, - title=title, - message=message, - no_cb = self.no_cb, - yes_cb = self.yes_cb) + dialog.ConfirmDialog.__init__(self) xmlui.ConfirmDialog.__init__(self, _xmlui_parent) + self.title=title + self.message=message + self.no_cb = self.no_cb + self.yes_cb = self.yes_cb def no_cb(self): G.host.closeUI()