detach removed submenu from the menubar too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b8033a5ddc
commit
082006f3ab
@ -385,6 +385,8 @@ wxMenuItem *wxMenuBase::DoRemove(wxMenuItem *item)
|
||||
if ( submenu )
|
||||
{
|
||||
submenu->SetParent((wxMenu *)NULL);
|
||||
if ( submenu->IsAttached() )
|
||||
submenu->Detach();
|
||||
}
|
||||
|
||||
return item;
|
||||
|
Loading…
Reference in New Issue
Block a user