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:
Vadim Zeitlin 2004-07-25 23:13:57 +00:00
parent b8033a5ddc
commit 082006f3ab

View File

@ -385,6 +385,8 @@ wxMenuItem *wxMenuBase::DoRemove(wxMenuItem *item)
if ( submenu )
{
submenu->SetParent((wxMenu *)NULL);
if ( submenu->IsAttached() )
submenu->Detach();
}
return item;