1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

#2798 Disable "Verify Local Data" for magnetized transfers

This commit is contained in:
Mitchell Livingston 2010-01-23 21:51:04 +00:00
parent 25e3227c89
commit bf2a6d8f09

View file

@ -3902,7 +3902,15 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
//enable reset cache item
if (action == @selector(verifySelectedTorrents:))
return canUseTable && [fTableView numberOfSelectedRows] > 0;
{
if (!canUseTable)
return NO;
for (Torrent * torrent in [fTableView selectedTorrents])
if (![torrent isMagnet])
return YES;
return NO;
}
//enable move torrent file item
if (action == @selector(moveDataFilesSelected:))