aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index a7d19ac579..6dc926123b 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -4808,14 +4808,16 @@ e_load_spell_languages (void)
const GtkhtmlSpellLanguage *language;
language = gtkhtml_spell_language_lookup (NULL);
-
- spell_languages = g_list_prepend (
- spell_languages, (gpointer) language);
+
+ if (language) {
+ spell_languages = g_list_prepend (
+ spell_languages, (gpointer) language);
/* Don't overwrite the stored spell check language
* codes if there was a problem retrieving them. */
- if (error == NULL)
- e_save_spell_languages (spell_languages);
+ if (error == NULL)
+ e_save_spell_languages (spell_languages);
+ }
}
if (error != NULL) {