disable the resume selected option if the table isn't useable

This commit is contained in:
Mitchell Livingston 2008-01-02 04:33:26 +00:00
parent cd857d4bb8
commit 6302c64c59
1 changed files with 3 additions and 0 deletions

View File

@ -3404,6 +3404,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
//enable resume selected waiting item
if (action == @selector(resumeSelectedTorrentsNoWait:))
{
if (!canUseTable)
return NO;
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
Torrent * torrent;
while ((torrent = [enumerator nextObject]))