parent
2296e75d0d
commit
c8115e4164
1 changed files with 4 additions and 2 deletions
|
@ -367,8 +367,10 @@ class CommandWindow:
|
||||||
if self.data_form_widget.get_data_form():
|
if self.data_form_widget.get_data_form():
|
||||||
df = self.data_form_widget.get_data_form()
|
df = self.data_form_widget.get_data_form()
|
||||||
if not df.is_valid():
|
if not df.is_valid():
|
||||||
dialogs.ErrorDialog(_('Invalid Form'),
|
dialogs.ErrorDialog(
|
||||||
_('The form is not filled correctly.'))
|
_('Invalid Form'),
|
||||||
|
_('The form is not filled correctly.'),
|
||||||
|
transient_for=self.window)
|
||||||
self.data_form_widget.set_sensitive(True)
|
self.data_form_widget.set_sensitive(True)
|
||||||
return
|
return
|
||||||
self.data_form_widget.data_form.type_ = 'submit'
|
self.data_form_widget.data_form.type_ = 'submit'
|
||||||
|
|
Loading…
Add table
Reference in a new issue