(trunk gtk) #3345 "Remove button deselects selected torrents" -- fixed

This commit is contained in:
Charles Kerr
2010-06-25 19:24:26 +00:00
parent 3334053843
commit 688ec1bafc
2 changed files with 4 additions and 6 deletions

View File

@@ -1501,13 +1501,12 @@ accumulateSelectedTorrents( GtkTreeModel * model,
static void
removeSelected( struct cbdata * data, gboolean delete_files )
{
GSList * l = NULL;
GSList * l = NULL;
GtkTreeSelection * s = tr_window_get_selection( data->wind );
gtk_tree_selection_selected_foreach( s, accumulateSelectedTorrents, &l );
gtk_tree_selection_unselect_all( s );
if( l )
{
if( l != NULL ) {
l = g_slist_reverse( l );
confirmRemove( data->wind, data->core, l, delete_files );
}