changeset 18098:1c8853f6bfc6

I am not sure why I made this change. But it looks good.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 15 Jun 2007 02:35:52 +0000
parents 16bfad2597fb
children 7be04c20bf22
files finch/libgnt/gnttree.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gnttree.c	Fri Jun 15 02:33:48 2007 +0000
+++ b/finch/libgnt/gnttree.c	Fri Jun 15 02:35:52 2007 +0000
@@ -753,15 +753,16 @@
 			g_signal_emit(tree, signals[SIG_TOGGLED], 0, row->key);
 			redraw_tree(tree);
 		}
+	} else {
+		return FALSE;
 	}
 
 	if (old != tree->current)
 	{
 		tree_selection_changed(tree, old, tree->current);
-		return TRUE;
 	}
 
-	return FALSE;
+	return TRUE;
 }
 
 static void