Various wxMotif changes including size optimisation and debugging operator fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -832,8 +832,11 @@ int PostDeletionOfMenu( XtPointer* clientData )
|
||||
wxMenu *menu = (wxMenu *)clientData;
|
||||
|
||||
if (menu->GetMainWidget()) {
|
||||
wxList& list = menu->GetParent()->GetItems();
|
||||
list.DeleteObject(menu);
|
||||
if (menu->GetParent())
|
||||
{
|
||||
wxList& list = menu->GetParent()->GetItems();
|
||||
list.DeleteObject(menu);
|
||||
}
|
||||
menu->DestroyMenu(TRUE);
|
||||
}
|
||||
/* Mark as no longer popped up */
|
||||
|
Reference in New Issue
Block a user