MenuItem::clearChildren does not seem to funciton
Brought to you by:
ddiego
OS: Vista64
How to reproduce: in a beforeMenuPopup callback use the following code:
popupMenu_->getRootMenuItem()->clearChildren();
new DefaultMenuItem("I should be alone!", popupMenu_->getRootMenuItem(), popupMenu_);
Result: The menuItem "I should be alone" will appear along with any previously existing menuItems attached to that popupMenu, i.e. calling up the popupMenu again will result in there being two "I should be alone" entries in the menu.
Expected: All previous menuitems should be deleted by clearChildren().