Commit b3f5f677 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

common: Avoid crashing if a language doesn't have a display name

If for some reason we cannot translate a language name, then
we wouldn't have a display language.

parent 104948be
......@@ -241,11 +241,13 @@ filter_languages (GtkTreeModel *model,
filter_string = g_object_get_data (G_OBJECT (model), "filter-string");
if (filter_string == NULL) {
if (filter_string == NULL)
return TRUE;
gtk_tree_model_get (model, iter, DISPLAY_LOCALE_COL, &locale, -1);
if (locale == NULL)
return FALSE;
l = g_utf8_casefold (locale, -1);
visible = strstr (l, filter_string) != NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment