]> git.0d.be Git - empathy.git/commitdiff
Ignoring non installed languages
authorFelix Kaser <f.kaser@gmx.net>
Tue, 20 Oct 2009 08:20:02 +0000 (10:20 +0200)
committerFelix Kaser <f.kaser@gmx.net>
Wed, 21 Oct 2009 06:49:03 +0000 (08:49 +0200)
Languages which are in the gconf setting but are not installed any more are ignored, fixes bug #598954

libempathy-gtk/empathy-spell.c

index 076e81a0381bf46fb6d1023956f2b7705e5331d8..3443fd9a099c0f65c80e6b136bc6823947aff25f 100644 (file)
@@ -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++;
                }