mirror of
https://github.com/transmission/transmission
synced 2025-03-03 10:15:45 +00:00
(trunk gtk) #3345 "Remove button deselects selected torrents" -- fixed
This commit is contained in:
parent
3334053843
commit
688ec1bafc
2 changed files with 4 additions and 6 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -1019,8 +1019,7 @@ struct url_dialog_data
|
|||
TrCore * core;
|
||||
tr_ctor * ctor;
|
||||
char * url;
|
||||
char * error;
|
||||
int response_code;
|
||||
long response_code;
|
||||
};
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue