diff frontends/src/primitivus/xmlui.py @ 1579:d5e332055d9f

quick_frontend, primitivus (xmlui): removed _xmluiClose from workflow were submit is triggered, as submit launch the callback which close the dialog itself + fixed dialogs _xmluiClose
author Goffi <goffi@goffi.org>
date Wed, 11 Nov 2015 18:29:32 +0100
parents 8c071bc359c9
children 641cfd2faefe
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Wed Nov 11 18:21:20 2015 +0100
+++ b/frontends/src/primitivus/xmlui.py	Wed Nov 11 18:29:32 2015 +0100
@@ -406,7 +406,7 @@
                     if not 'NO_CANCEL' in self.flags:
                         buttons.append(urwid.Button(_('Cancel'), self.onFormCancelled))
                 else:
-                    buttons.append(urwid.Button(_('OK'), lambda dummy: self._xmluiClose()))
+                    buttons.append(urwid.Button(_('OK')))
                 max_len = max([len(button.get_label()) for button in buttons])
                 grid_wid = urwid.GridFlow(buttons, max_len + 4, 1, 0, 'center')
                 self.main_cont.body.append(grid_wid)