mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
get file tab working again
This commit is contained in:
@@ -99,7 +99,7 @@
|
||||
[titleString drawInRect: titleRect];
|
||||
|
||||
//status
|
||||
if ([[[self objectValue] objectForKey: @"IsFolder"] boolValue])
|
||||
if (![[[self objectValue] objectForKey: @"IsFolder"] boolValue])
|
||||
{
|
||||
NSAttributedString * statusString = [self attributedStatusWithColor: highlighted ? [NSColor whiteColor]
|
||||
: [NSColor darkGrayColor]];
|
||||
|
||||
@@ -37,14 +37,14 @@
|
||||
else
|
||||
priority = TR_PRI_NORMAL;
|
||||
|
||||
[torrent setFilePriority: priority forIndexes: [[self objectValue] objectForKey: @"Indexes"]];
|
||||
[torrent setFilePriority: priority forIndexes: [[self representedObject] objectForKey: @"Indexes"]];
|
||||
[(FileOutlineView *)[self controlView] reloadData];
|
||||
}
|
||||
|
||||
- (void) drawWithFrame: (NSRect) cellFrame inView: (NSView *) controlView
|
||||
{
|
||||
Torrent * torrent = [(InfoWindowController *)[[[self controlView] window] windowController] selectedTorrent];
|
||||
NSDictionary * dict = [self objectValue];
|
||||
NSDictionary * dict = [self representedObject];
|
||||
NSSet * priorities = [torrent filePrioritiesForIndexes: [dict objectForKey: @"Indexes"]];
|
||||
|
||||
int count = [priorities count];
|
||||
|
||||
@@ -879,6 +879,9 @@
|
||||
NSString * identifier = [tableColumn identifier];
|
||||
if ([identifier isEqualToString: @"Check"])
|
||||
[cell setEnabled: [[fTorrents objectAtIndex: 0] canChangeDownloadCheckForFiles: [item objectForKey: @"Indexes"]]];
|
||||
else if ([identifier isEqualToString: @"Priority"])
|
||||
[cell setRepresentedObject: item];
|
||||
else;
|
||||
}
|
||||
|
||||
- (void) outlineView: (NSOutlineView *) outlineView setObjectValue: (id) object
|
||||
|
||||
Reference in New Issue
Block a user