From 1a8d2103f6467887118394f4723be918e1233cac Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 17 Jan 2007 23:24:35 +0000 Subject: [PATCH] path tooltip only under the name column --- macosx/InfoWindowController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index 790df0a56..b7a5a36f7 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -763,12 +763,15 @@ - (NSString *) outlineView: (NSOutlineView *) outlineView toolTipForCell: (NSCell *) cell rect: (NSRectPointer) rect tableColumn: (NSTableColumn *) tableColumn item: (id) item mouseLocation: (NSPoint) mouseLocation { - if ([[tableColumn identifier] isEqualToString: @"Size"]) + NSString * ident = [tableColumn identifier]; + if ([ident isEqualToString: @"Size"]) return ![[item objectForKey: @"IsFolder"] boolValue] ? [[[item objectForKey: @"Size"] stringValue] stringByAppendingString: NSLocalizedString(@" bytes", "Inspector -> Files tab -> table row tooltip")] : nil; - else + else if ([ident isEqualToString: @"Name"]) return [[[fTorrents objectAtIndex: 0] downloadFolder] stringByAppendingPathComponent: [item objectForKey: @"Path"]]; + else + return nil; } - (NSArray *) peerSortDescriptors