mirror of
https://github.com/transmission/transmission
synced 2025-03-06 11:38:21 +00:00
(gtk) use tr_torrentDelete() when user hits `cancel' in the "open torrent" dialog
This commit is contained in:
parent
d4eb3c018e
commit
ac8e76a70f
1 changed files with 1 additions and 5 deletions
|
@ -34,13 +34,9 @@ deleteOldTorrent( struct OpenData * data )
|
|||
{
|
||||
if( data->gtor )
|
||||
{
|
||||
tr_torrent * tor;
|
||||
|
||||
file_list_set_torrent( data->list, NULL );
|
||||
|
||||
tor = tr_torrent_handle( data->gtor );
|
||||
tr_torrentRemoveSaved( tor );
|
||||
|
||||
tr_torrent_set_delete_flag( data->gtor, TRUE );
|
||||
g_object_unref( G_OBJECT( data->gtor ) );
|
||||
data->gtor = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue