Fixed NSMenu removeAllItems to also remove the cell views.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38849 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Paul Landers 2015-07-30 18:31:15 +00:00
parent e72f28bd58
commit 91919e85d1
3 changed files with 17 additions and 0 deletions

View file

@ -839,6 +839,7 @@ static BOOL menuBarVisible = YES;
[_items removeAllObjects];
_menu.needsSizing = YES;
[(NSMenuView*)_view setNeedsSizing: YES];
[(NSMenuView*)_view allItemsRemoved];
[self menuChanged];
}