]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / tbarbase.cpp
index ced3746df2c433c407c95437c24a7ded2bac50f3..2a33c1979bf8d61f340400252f8f3cc9c6dd090c 100644 (file)
@@ -701,12 +701,6 @@ void wxToolBarBase::UpdateWindowUI(long flags)
     if ( !IsShown() )
         return;
 
-    // There is no sense in updating the toolbar UI
-    // if the parent window is about to get destroyed
-    wxWindow *tlw = wxGetTopLevelParent( this );
-    if (tlw && wxPendingDelete.Member( tlw ))
-        return;
-
     wxEvtHandler* evtHandler = GetEventHandler() ;
 
     for ( wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst();