mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
option pulldowns work for multiple transfers again
This commit is contained in:
parent
274693c436
commit
621ce10c18
1 changed files with 6 additions and 3 deletions
|
@ -601,9 +601,6 @@
|
||||||
|
|
||||||
- (BOOL) validateMenuItem: (NSMenuItem *) menuItem
|
- (BOOL) validateMenuItem: (NSMenuItem *) menuItem
|
||||||
{
|
{
|
||||||
if ([fTorrents count] != 1)
|
|
||||||
return NO;
|
|
||||||
|
|
||||||
SEL action = [menuItem action];
|
SEL action = [menuItem action];
|
||||||
|
|
||||||
if (action == @selector(revealFile:))
|
if (action == @selector(revealFile:))
|
||||||
|
@ -612,6 +609,9 @@
|
||||||
|
|
||||||
if (action == @selector(setCheck:))
|
if (action == @selector(setCheck:))
|
||||||
{
|
{
|
||||||
|
if ([fFileOutline numberOfSelectedRows] <= 0)
|
||||||
|
return NO;
|
||||||
|
|
||||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||||
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
|
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
|
||||||
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];
|
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];
|
||||||
|
@ -631,6 +631,9 @@
|
||||||
|
|
||||||
if (action == @selector(setOnlySelectedCheck:))
|
if (action == @selector(setOnlySelectedCheck:))
|
||||||
{
|
{
|
||||||
|
if ([fFileOutline numberOfSelectedRows] <= 0)
|
||||||
|
return NO;
|
||||||
|
|
||||||
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
Torrent * torrent = [fTorrents objectAtIndex: 0];
|
||||||
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
|
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
|
||||||
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];
|
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];
|
||||||
|
|
Loading…
Add table
Reference in a new issue