(gtk) fix crash-when-removing-more-than-one-torrent bug reported by wereHamster and Lacrocivious

This commit is contained in:
Charles Kerr 2008-02-28 15:47:09 +00:00
parent 1df83e3a2e
commit cc7f95e68a
1 changed files with 1 additions and 0 deletions

View File

@ -1071,6 +1071,7 @@ doAction ( const char * action_name, gpointer user_data )
GList * 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 != NULL )
confirmDelete( data->wind, data->core, l );
}