From 4fdc2f4c91228259ce799502f1c6b5dcfd2a7fdf Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 5 Sep 2006 02:23:54 +0000 Subject: [PATCH] booleans are easier...again --- macosx/BarButton.m | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/macosx/BarButton.m b/macosx/BarButton.m index e4e67e6f4..54439382b 100644 --- a/macosx/BarButton.m +++ b/macosx/BarButton.m @@ -252,12 +252,7 @@ - (void) setForActive: (NSNotification *) notification { - if ([self image] == fButtonSelectedDim) - [self setImage: fButtonSelected]; - else if ([self image] == fButtonNormalDim) - [self setImage: fButtonNormal]; - else; - + [self setImage: fEnabled ? fButtonSelected : fButtonNormal]; [self resetBounds: nil]; }