#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
1 changed files with 9 additions and 1 deletions

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:))