mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-20 14:56:36 +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
b06abb1fc1
commit
3bb689ffbb
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