mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 07:11:00 +00:00
Added case to menu autoenabler to disable supermenus that have empty submenus, when there is no validator.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c75af1e49
commit
9785d080af
1 changed files with 4 additions and 0 deletions
|
@ -1198,6 +1198,10 @@ static BOOL menuBarVisible = YES;
|
|||
{
|
||||
shouldBeEnabled = [validator validateUserInterfaceItem: item];
|
||||
}
|
||||
else if ([item hasSubmenu] && [[item submenu] numberOfItems] == 0)
|
||||
{
|
||||
shouldBeEnabled = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
shouldBeEnabled = YES;
|
||||
|
|
Loading…
Reference in a new issue