From d5edefda0756b5aed15c7b408c9412eacaa2fea0 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 28 May 2024 09:05:33 +0200 Subject: [PATCH] I#2761 - Composer: Crash when opening spellcheck dialog Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2761 --- src/e-util/e-html-editor-spell-check-dialog.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/e-util/e-html-editor-spell-check-dialog.c b/src/e-util/e-html-editor-spell-check-dialog.c index 92e887be49..856e68d590 100644 --- a/src/e-util/e-html-editor-spell-check-dialog.c +++ b/src/e-util/e-html-editor-spell-check-dialog.c @@ -294,12 +294,11 @@ html_editor_spell_check_dialog_show (GtkWidget *widget) e_content_editor_on_dialog_open (cnt_editor, E_CONTENT_EDITOR_DIALOG_SPELLCHECK); + GTK_WIDGET_CLASS (e_html_editor_spell_check_dialog_parent_class)->show (widget); + /* Select the first word or quit */ - if (html_editor_spell_check_dialog_next (dialog)) { - GTK_WIDGET_CLASS (e_html_editor_spell_check_dialog_parent_class)->show (widget); - } else { + if (!html_editor_spell_check_dialog_next (dialog)) e_content_editor_on_dialog_close (cnt_editor, E_CONTENT_EDITOR_DIALOG_SPELLCHECK); - } } static void