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:
Paul Landers 2015-01-08 23:52:59 +00:00
parent 5c75af1e49
commit 9785d080af

View file

@ -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;