Mercurial > geeqie
changeset 1487:d6061c019ceb
fixed possible crash
author | nadvornik |
---|---|
date | Sun, 29 Mar 2009 19:40:16 +0000 |
parents | 1b2ddc6b2b27 |
children | f96cc7807780 |
files | src/metadata.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/metadata.c Sun Mar 29 16:39:42 2009 +0000 +++ b/src/metadata.c Sun Mar 29 19:40:16 2009 +0000 @@ -1159,7 +1159,7 @@ void keyword_hide_unset_in(GtkTreeStore *keyword_tree, gpointer id, GList *keywords) { GtkTreeIter iter; - gtk_tree_model_get_iter_first(GTK_TREE_MODEL(keyword_tree), &iter); + if (!gtk_tree_model_get_iter_first(GTK_TREE_MODEL(keyword_tree), &iter)) return; keyword_hide_unset_in_recursive(keyword_tree, &iter, id, keywords); }