get destroyed later anyway.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25877
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxWindowBase::UpdateWindowUI(flags);
{
wxWindowBase::UpdateWindowUI(flags);
+ // There is no sense in updating the toolbar UI
+ // if the parent window is about to get destroyed
+ if (GetParent() && wxPendingDelete.Member( GetParent() ))
+ return;
+
wxEvtHandler* evtHandler = GetEventHandler() ;
for ( wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst();
wxEvtHandler* evtHandler = GetEventHandler() ;
for ( wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst();