From 4d7f5a8a092c98aa999e9e2cbbf37c79b380688b Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 17 Nov 2009 19:17:58 -0800 Subject: [PATCH] Fix for fixing state after turning setAllowsMixedState to NO. Reviewed by me. --- AppKit/CPButton.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppKit/CPButton.j b/AppKit/CPButton.j index b08b60da4..57b15195b 100644 --- a/AppKit/CPButton.j +++ b/AppKit/CPButton.j @@ -192,8 +192,8 @@ CPButtonStateMixed = CPThemeState("mixed"); _allowsMixedState = aFlag; - if (!_allowsMixedState) - [self unsetThemeState:CPButtonStateMixed]; + if (!_allowsMixedState && [self state] === CPMixedState) + [self setState:CPOnState]; } - (void)setObjectValue:(id)anObjectValue