Skip to content

Commit

Permalink
Fix getting parent window
Browse files Browse the repository at this point in the history
Closes #171
  • Loading branch information
otsaloma committed Nov 22, 2020
1 parent adfa615 commit 6b95ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gaupol/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def _show_error_dialog(self, message):
name = gaupol.conf.spell_check.language
name = aeidon.locales.code_to_name(name)
title = _('Failed to load dictionary for language "{}"').format(name)
dialog = gaupol.ErrorDialog(self.get_parent(), title, message)
dialog = gaupol.ErrorDialog(self.get_ancestor(Gtk.Window), title, message)
dialog.add_button(_("_OK"), Gtk.ResponseType.OK)
dialog.set_default_response(Gtk.ResponseType.OK)
gaupol.util.flash_dialog(dialog)
Expand Down

0 comments on commit 6b95ae8

Please sign in to comment.