aboutsummaryrefslogtreecommitdiff
path: root/src/compose.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compose.c')
-rw-r--r--src/compose.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compose.c b/src/compose.c
index 746e9712..80ef48bf 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -5814,9 +5814,12 @@ static void compose_set_spell_lang_menu(Compose *compose)
g_object_set_data(G_OBJECT(item), "spell-lang", dict);
gtk_widget_show(item);
- if (!lang_set && g_ascii_strcasecmp("en", dict) == 0)
+ if (!lang_set && g_ascii_strcasecmp("en", dict) == 0) {
+ g_free(compose->spell_lang);
+ compose->spell_lang = g_strdup("en");
gtk_check_menu_item_set_active
(GTK_CHECK_MENU_ITEM(item), TRUE);
+ }
}
gtk_widget_show(menu);