aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-11-12 14:23:20 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-11-12 14:23:20 +0800
commit7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870 (patch)
tree9d20956949fe025fec0979c62b3c33a926a9ca16 /composer/e-msg-composer.c
parent3447262d1b4219296c79ecb27216f932c49568bd (diff)
downloadgsoc2013-evolution-7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870.tar.gz
gsoc2013-evolution-7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870.tar.zst
gsoc2013-evolution-7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870.zip
** Fix for bug #559701
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. svn path=/trunk/; revision=36775
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) {