Serge Ivanov
Delay destroying menu entry until all messages are sent.
This commit is contained in:
parent
942dcb1df6
commit
a1ce916171
|
@ -660,8 +660,6 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
|
|||
|
||||
if( childPtr )
|
||||
{
|
||||
MDI_MenuDeleteItem(w_parent, child);
|
||||
|
||||
if( child == ci->hwndActiveChild )
|
||||
{
|
||||
MDI_SwitchActiveChild(parent, child, TRUE);
|
||||
|
@ -678,7 +676,9 @@ static LRESULT MDIDestroyChild( WND *w_parent, MDICLIENTINFO *ci,
|
|||
|
||||
MDI_ChildActivate(w_parent, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MDI_MenuDeleteItem(w_parent, child);
|
||||
|
||||
WIN_ReleaseWndPtr(childPtr);
|
||||
|
||||
|
|
Loading…
Reference in New Issue