Set state directly when decoding,

otherwise the items gets into changesStatus mode.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25674 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2007-12-03 21:05:38 +00:00
parent b06abb1fc1
commit 3bb689ffbb
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSMenuItem.m (-initWithCoder:): Set state directly,
otherwise the items gets into changesStatus mode.
2007-12-03 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSView.m (-bitmapImageRepForCachingDisplayInRect:): Don't

View file

@ -592,8 +592,7 @@ static Class imageClass;
}
if ([aDecoder containsValueForKey: @"NSState"])
{
int state = [aDecoder decodeIntForKey: @"NSState"];
[self setState: state];
_state = [aDecoder decodeIntForKey: @"NSState"];
}
if ([aDecoder containsValueForKey: @"NSIsDisabled"])
{