comparison frontends/src/tools/xmlui.py @ 1109:0a448c947038

frontends: dialog don't crash anymore is no submit_id is given (submit does nothing in this case)
author Goffi <goffi@goffi.org>
date Wed, 20 Aug 2014 21:16:14 +0200
parents e2e1e27a3680
children f91e7028e2c3
comparison
equal deleted inserted replaced
1108:6bdcaeafca11 1109:0a448c947038
159 self._xmluiSetData(C.XMLUI_STATUS_CANCELLED, data) 159 self._xmluiSetData(C.XMLUI_STATUS_CANCELLED, data)
160 self._xmluiSubmit(data) 160 self._xmluiSubmit(data)
161 self._xmluiClose() 161 self._xmluiClose()
162 162
163 def _xmluiSubmit(self, data): 163 def _xmluiSubmit(self, data):
164 self._xmlui_parent.submit(data) 164 if self._xmlui_parent.submit_id is None:
165 log.debug(_("Nothing to submit"))
166 else:
167 self._xmlui_parent.submit(data)
165 168
166 def _xmluiSetData(self, status, data): 169 def _xmluiSetData(self, status, data):
167 pass 170 pass
168 171
169 172