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

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

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