diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2008-11-12 14:23:20 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2008-11-12 14:23:20 +0800 |
commit | 7dde4c5626f23bcd6d5c47dae8b61df7c4b9a870 (patch) | |
tree | 9d20956949fe025fec0979c62b3c33a926a9ca16 | |
parent | 3447262d1b4219296c79ecb27216f932c49568bd (diff) | |
download | gsoc2013-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
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 12 |
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) { |