mirror of
https://github.com/transmission/transmission
synced 2025-02-21 13:46:52 +00:00
disable the resume selected option if the table isn't useable
This commit is contained in:
parent
cd857d4bb8
commit
6302c64c59
1 changed files with 3 additions and 0 deletions
|
@ -3404,6 +3404,9 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
||||||
//enable resume selected waiting item
|
//enable resume selected waiting item
|
||||||
if (action == @selector(resumeSelectedTorrentsNoWait:))
|
if (action == @selector(resumeSelectedTorrentsNoWait:))
|
||||||
{
|
{
|
||||||
|
if (!canUseTable)
|
||||||
|
return NO;
|
||||||
|
|
||||||
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
|
NSEnumerator * enumerator = [[fDisplayedTorrents objectsAtIndexes: [fTableView selectedRowIndexes]] objectEnumerator];
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
|
|
Loading…
Reference in a new issue