I#2761 - Composer: Crash when opening spellcheck dialog

Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2761
This commit is contained in:
Milan Crha
2024-05-28 09:05:33 +02:00
parent 4e15e1938e
commit d5edefda07

View File

@ -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