aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-21 17:21:41 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-21 17:21:41 +0800
commit366373ccbc26bd0ea6dd494b7514b1a148b88b78 (patch)
tree762b583bcc63589f0be4673e025abf3697ee9b8b
parent7abf768e7296a95e42f0fd31a5459e065ca921e6 (diff)
parent8c1e75542e1ac90bcd0dc167a2d89aeb54e9f12a (diff)
downloadgsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar.gz
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar.bz2
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar.lz
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar.xz
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.tar.zst
gsoc2013-empathy-366373ccbc26bd0ea6dd494b7514b1a148b88b78.zip
Merge commit 'kaserf/master'
-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++;
}