Use YES as default value for AutoenablesItems.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2010-01-19 08:34:24 +00:00
parent 7268a24443
commit 5bc41a34b0
2 changed files with 10 additions and 3 deletions

View file

@ -612,7 +612,9 @@ static BOOL menuBarVisible = YES;
{
NSMenuView *menuRep;
[super init];
self = [super init];
if (!self)
return nil;
// Keep the title.
ASSIGN(_title, aTitle);
@ -1567,11 +1569,11 @@ static BOOL menuBarVisible = YES;
//
if ([aDecoder containsValueForKey: @"NSNoAutoenable"])
{
dAuto = ([aDecoder decodeBoolForKey: @"NSNoAutoenable"] == NO) ? YES : NO;
dAuto = ![aDecoder decodeBoolForKey: @"NSNoAutoenable"];
}
else
{
dAuto = NO;
dAuto = YES;
}
dTitle = [aDecoder decodeObjectForKey: @"NSTitle"];
dItems = [aDecoder decodeObjectForKey: @"NSMenuItems"];