]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/toplvcmn.cpp
Build fix: help OW 1.4 to apply template.
[wxWidgets.git] / src / common / toplvcmn.cpp
index f69ac1e02154c459284b2264b37cac58746dd24a..c519fbc7c9005e0c8fdfc28c2a347a2ae1725643 100644 (file)
@@ -288,9 +288,12 @@ bool wxTopLevelWindowBase::SendIconizeEvent(bool iconized)
 // do the window-specific processing after processing the update event
 void wxTopLevelWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
 {
-    if ( event.GetSetEnabled() )
-        Enable(event.GetEnabled());
+    // call inherited, but skip the wxControl's version, and call directly the
+    // wxWindow's one instead, because the only reason why we are overriding this
+    // function is that we want to use SetTitle() instead of wxControl::SetLabel()
+    wxWindowBase::DoUpdateWindowUI(event);
 
+    // update title
     if ( event.GetSetText() )
     {
         if ( event.GetText() != GetTitle() )