mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 13:41:55 +00:00
* Source/NSMenu.m (-update): Added case to menu autoenabler to
disable supermenus that have empty submenus, when there is no validator. Patch by Paul Landers <paul.landers@testplant.com>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
29f6b1c29e
commit
d8f2950729
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2015-01-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSMenu.m (-update): Added case to menu autoenabler to
|
||||||
|
disable supermenus that have empty submenus, when there is no
|
||||||
|
validator.
|
||||||
|
Patch by Paul Landers <paul.landers@testplant.com>.
|
||||||
|
|
||||||
2015-01-11 Fred Kiefer <FredKiefer@gmx.de>
|
2015-01-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTextView.m: Fix bizarre behavior with undo/redo
|
* Source/NSTextView.m: Fix bizarre behavior with undo/redo
|
||||||
|
|
|
@ -1192,7 +1192,11 @@ static BOOL menuBarVisible = YES;
|
||||||
{
|
{
|
||||||
shouldBeEnabled = [validator validateUserInterfaceItem: item];
|
shouldBeEnabled = [validator validateUserInterfaceItem: item];
|
||||||
}
|
}
|
||||||
else
|
else if ([item hasSubmenu] && [[item submenu] numberOfItems] == 0)
|
||||||
|
{
|
||||||
|
shouldBeEnabled = NO;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
shouldBeEnabled = YES;
|
shouldBeEnabled = YES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue