]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/tbarbase.cpp
don't define functions unused under CE when compiling for it (avoids warnings)
[wxWidgets.git] / src / common / tbarbase.cpp
index d78bcf6fe8886713369a32749aa535d49b2a9da3..d2243fedf2cd3b1f25719b798484aaa997b5dff1 100644 (file)
@@ -623,7 +623,8 @@ void wxToolBarBase::UpdateWindowUI(long flags)
 
     // There is no sense in updating the toolbar UI
     // if the parent window is about to get destroyed
-    if (GetParent() && wxPendingDelete.Member( GetParent() ))
+    wxWindow *tlw = wxGetTopLevelParent( this );
+    if (tlw && wxPendingDelete.Member( tlw ))
         return;
 
     wxEvtHandler* evtHandler = GetEventHandler() ;