aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer.c12
2 files changed, 14 insertions, 5 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index de52aea8b1..b258637da4 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-07 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #559701
+
+ * e-msg-composer.c: (e_load_spell_languages): Don't save when its
+ NULL.
+
2008-11-05 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #559371
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) {