diff src/metadata.c @ 1595:9e2111452988

fixed keyword tree initialization
author nadvornik
date Thu, 07 May 2009 19:52:38 +0000
parents 69abb57139f0
children 7de9a6897060
line wrap: on
line diff
--- a/src/metadata.c	Thu May 07 19:38:07 2009 +0000
+++ b/src/metadata.c	Thu May 07 19:52:38 2009 +0000
@@ -1333,11 +1333,9 @@
 
 void keyword_tree_new_default(void)
 {
-	if (keyword_tree) return;
-	
-	keyword_tree_new();
+	GtkTreeIter i1, i2, i3;
 
-	GtkTreeIter i1, i2, i3;
+	if (!keyword_tree) keyword_tree_new();
 
 	i1 = keyword_tree_default_append(keyword_tree, NULL, _("People"), TRUE); 
 		i2 = keyword_tree_default_append(keyword_tree, &i1, _("Family"), TRUE);