mirror of
https://github.com/transmission/transmission
synced 2025-03-06 19:48:15 +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 )
|
if( data->gtor )
|
||||||
{
|
{
|
||||||
tr_torrent * tor;
|
|
||||||
|
|
||||||
file_list_set_torrent( data->list, NULL );
|
file_list_set_torrent( data->list, NULL );
|
||||||
|
|
||||||
tor = tr_torrent_handle( data->gtor );
|
tr_torrent_set_delete_flag( data->gtor, TRUE );
|
||||||
tr_torrentRemoveSaved( tor );
|
|
||||||
|
|
||||||
g_object_unref( G_OBJECT( data->gtor ) );
|
g_object_unref( G_OBJECT( data->gtor ) );
|
||||||
data->gtor = NULL;
|
data->gtor = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue