Set transient for ErrorDialog

Fixes #8649
This commit is contained in:
Philipp Hörist 2017-06-08 23:23:37 +02:00
parent 2296e75d0d
commit c8115e4164
1 changed files with 4 additions and 2 deletions

View File

@ -367,8 +367,10 @@ class CommandWindow:
if self.data_form_widget.get_data_form():
df = self.data_form_widget.get_data_form()
if not df.is_valid():
dialogs.ErrorDialog(_('Invalid Form'),
_('The form is not filled correctly.'))
dialogs.ErrorDialog(
_('Invalid Form'),
_('The form is not filled correctly.'),
transient_for=self.window)
self.data_form_widget.set_sensitive(True)
return
self.data_form_widget.data_form.type_ = 'submit'