mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 17:10:37 +00:00
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:
parent
c970b157e4
commit
d1a9f60bcc
2 changed files with 6 additions and 2 deletions
|
@ -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"])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue