option pulldowns work for multiple transfers again

This commit is contained in:
Mitchell Livingston
2007-07-03 21:55:42 +00:00
parent 274693c436
commit 621ce10c18

View File

@@ -601,9 +601,6 @@
- (BOOL) validateMenuItem: (NSMenuItem *) menuItem
{
if ([fTorrents count] != 1)
return NO;
SEL action = [menuItem action];
if (action == @selector(revealFile:))
@@ -612,6 +609,9 @@
if (action == @selector(setCheck:))
{
if ([fFileOutline numberOfSelectedRows] <= 0)
return NO;
Torrent * torrent = [fTorrents objectAtIndex: 0];
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];
@@ -631,6 +631,9 @@
if (action == @selector(setOnlySelectedCheck:))
{
if ([fFileOutline numberOfSelectedRows] <= 0)
return NO;
Torrent * torrent = [fTorrents objectAtIndex: 0];
NSIndexSet * indexSet = [fFileOutline selectedRowIndexes], * itemIndexes;
NSMutableIndexSet * usedIndexes = [NSMutableIndexSet indexSet];