aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2009-10-20 16:20:02 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-21 17:22:18 +0800
commit0e42dd141a98a8d328456804ee9b0ed5770b7411 (patch)
tree929ac3d26ee22946453aca76776546dedf859ef9 /libempathy-gtk
parent62a30389b6b945d0ed49af5f1cf4e1c7d06b18e3 (diff)
downloadgsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar.gz
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar.bz2
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar.lz
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar.xz
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.tar.zst
gsoc2013-empathy-0e42dd141a98a8d328456804ee9b0ed5770b7411.zip
Ignoring non installed languages
Languages which are in the gconf setting but are not installed any more are ignored, fixes bug #598954
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-spell.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-spell.c b/libempathy-gtk/empathy-spell.c
index 076e81a03..3443fd9a0 100644
--- a/libempathy-gtk/empathy-spell.c
+++ b/libempathy-gtk/empathy-spell.c
@@ -219,7 +219,12 @@ spell_setup_languages (void)
lang->config = enchant_broker_init ();
lang->speller = enchant_broker_request_dict (lang->config, strv[i]);
- languages = g_list_append (languages, lang);
+ if (lang->speller == NULL) {
+ DEBUG ("language '%s' has no valid dict", strv[i]);
+ } else {
+ languages = g_list_append (languages, lang);
+ }
+
i++;
}