]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-spell.c
Merge commit 'staz/dnd'
[empathy.git] / libempathy-gtk / empathy-spell.c
index 076e81a0381bf46fb6d1023956f2b7705e5331d8..17c7f100e303bff989e9c1e7338b22665107e00c 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++;
                }
 
@@ -309,7 +314,6 @@ empathy_spell_check (const gchar *word)
        spell_setup_languages ();
 
        if (!languages) {
-               DEBUG ("No languages to check against");
                return TRUE;
        }