# HG changeset patch # User Goffi # Date 1408562174 -7200 # Node ID 0a448c94703832893caa92bc85fc4b4818bebf45 # Parent 6bdcaeafca11bca67bc532017a0c110f9c3f8f26 frontends: dialog don't crash anymore is no submit_id is given (submit does nothing in this case) diff -r 6bdcaeafca11 -r 0a448c947038 frontends/src/tools/xmlui.py --- a/frontends/src/tools/xmlui.py Wed Aug 20 21:15:04 2014 +0200 +++ b/frontends/src/tools/xmlui.py Wed Aug 20 21:16:14 2014 +0200 @@ -161,7 +161,10 @@ self._xmluiClose() def _xmluiSubmit(self, data): - self._xmlui_parent.submit(data) + if self._xmlui_parent.submit_id is None: + log.debug(_("Nothing to submit")) + else: + self._xmlui_parent.submit(data) def _xmluiSetData(self, status, data): pass