# HG changeset patch
# User nadvornik
# Date 1209154127 0
# Node ID 92b5a033a2792cd4351f9c72951471e32fcacf76
# Parent  86f4c42afeab19bd8c0ac3303f83640b07069e7b
fixed dragging multiple files from file list
http://sourceforge.net/tracker/index.php?func=detail&aid=1950740&group_id=222125&atid=1054680

diff -r 86f4c42afeab -r 92b5a033a279 src/view_file_list.c
--- a/src/view_file_list.c	Fri Apr 25 09:31:32 2008 +0000
+++ b/src/view_file_list.c	Fri Apr 25 20:08:47 2008 +0000
@@ -768,8 +768,17 @@
 	    !(bevent->state & GDK_CONTROL_MASK ) &&
 	    vflist_row_is_selected(vfl, fd))
 		{
+		GtkTreeSelection *selection;
+
 		gtk_widget_grab_focus(widget);
-//		return TRUE; // FIXME - expand
+
+
+		/* returning FALSE and further processing of the event is needed for 
+		   correct operation of the expander, to show the sidecar files.
+		   It however resets the selection of multiple files. With this condition
+		   it should work for both cases */
+		selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widget));
+		return (gtk_tree_selection_count_selected_rows(selection) > 1);
 		}
 
 #if 0