diff --git a/macosx/Controller.h b/macosx/Controller.h index b14d2f883..38659b226 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -274,6 +274,7 @@ typedef enum - (void) rpcCallback: (tr_rpc_callback_type) type forTorrentStruct: (struct tr_torrent *) torrentStruct; - (void) rpcAddTorrentStruct: (NSValue *) torrentStructPtr; - (void) rpcRemoveTorrent: (Torrent *) torrent; +- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent; - (void) rpcStartedStoppedTorrent: (Torrent *) torrent; - (void) rpcChangedTorrent: (Torrent *) torrent; - (void) rpcMovedTorrent: (Torrent *) torrent; diff --git a/macosx/Controller.m b/macosx/Controller.m index e5290ee88..d1fe616c4 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -4436,6 +4436,10 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [self performSelectorOnMainThread: @selector(rpcRemoveTorrent:) withObject: torrent waitUntilDone: NO]; break; + case TR_RPC_TORRENT_TRASHING: + [self performSelectorOnMainThread: @selector(rpcRemoveTorrentDeleteData:) withObject: torrent waitUntilDone: NO]; + break; + case TR_RPC_TORRENT_CHANGED: [self performSelectorOnMainThread: @selector(rpcChangedTorrent:) withObject: torrent waitUntilDone: NO]; break; @@ -4485,6 +4489,12 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [torrent release]; } +- (void) rpcRemoveTorrentDeleteData: (Torrent *) torrent +{ + [self confirmRemoveTorrents: [[NSArray arrayWithObject: torrent] retain] deleteData: YES]; + [torrent release]; +} + - (void) rpcStartedStoppedTorrent: (Torrent *) torrent { [torrent update];