From 397cad4c04af8e0c3204cf57b5e5a0d74e8b833d Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 26 Oct 2009 02:02:25 +0000 Subject: [PATCH] only set the inspector reveal button image on 10.5 --- macosx/InfoWindowController.m | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/macosx/InfoWindowController.m b/macosx/InfoWindowController.m index f18c0f15a..37d6e432c 100644 --- a/macosx/InfoWindowController.m +++ b/macosx/InfoWindowController.m @@ -154,21 +154,22 @@ typedef enum [fTabMatrix selectCellWithTag: tag]; [self setTab: nil]; - //reset images for reveal button, since the images are also used in the main table - NSImage * revealOn = [[NSImage imageNamed: @"RevealOn.png"] copy], - * revealOff = [[NSImage imageNamed: @"RevealOff.png"] copy]; if (![NSApp isOnSnowLeopardOrBetter]) { + //reset images for reveal button, since the images are also used in the main table + NSImage * revealOn = [[NSImage imageNamed: @"RevealOn.png"] copy], + * revealOff = [[NSImage imageNamed: @"RevealOff.png"] copy]; + [revealOn setFlipped: NO]; [revealOff setFlipped: NO]; + + [fRevealDataButton setImage: revealOff]; + [fRevealDataButton setAlternateImage: revealOn]; + + [revealOn release]; + [revealOff release]; } - [fRevealDataButton setImage: revealOff]; - [fRevealDataButton setAlternateImage: revealOn]; - - [revealOn release]; - [revealOff release]; - //initially sort peer table by IP if ([[fPeerTable sortDescriptors] count] == 0) [fPeerTable setSortDescriptors: [NSArray arrayWithObject: [[fPeerTable tableColumnWithIdentifier: @"IP"] @@ -439,13 +440,10 @@ typedef enum [fDateAddedField setObjectValue: [torrent dateAdded]]; - [fRevealDataButton setHidden: NO]; - //allow these fields to be selected [fHashField setSelectable: YES]; [fCommentView setSelectable: ![commentString isEqualToString: @""]]; [fCreatorField setSelectable: ![creatorString isEqualToString: @""]]; - [fDataLocationField setSelectable: YES]; //set pieces view BOOL piecesAvailableSegment = [[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];