mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
* 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:
parent
f74ca7e5c1
commit
09955c2002
2 changed files with 8 additions and 0 deletions
|
@ -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:,
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue