* Source/GSNibLoading.m: Check to make sure the menu has more than

0 entries in _setMain:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27206 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-04 03:33:02 +00:00
parent f74ca7e5c1
commit 09955c2002
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-12-03 22:38-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/GSNibLoading.m: Check to make sure the menu has more than
0 entries in _setMain:.
2008-12-03 17:23-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSDocumentController.m: Fixed fileExtensionFromType:,

View file

@ -81,6 +81,9 @@ static BOOL _isInInterfaceBuilder = NO;
NSMenuItem *appItem;
NSString *processName;
if([self numberOfItems] == 0)
return;
appItem = [self itemAtIndex: 0]; // Info item.
oldRep = [self menuRepresentation];
oldStyle = [oldRep interfaceStyle];