Fix for fixing state after turning setAllowsMixedState to NO.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I
2009-11-17 19:17:58 -08:00
parent 2d01fa6f94
commit 4d7f5a8a09
+2 -2
View File
@@ -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