diff finch/libgnt/gnttree.c @ 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 08776fc5c06f
children ab6d2763b8d8
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