]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/auibar.cpp
Ignore WXK_NONE events in wxStyledTextCtrl.
[wxWidgets.git] / src / aui / auibar.cpp
index 0d71b3162ae98d4ae0563db701a8f47dcdb8536f..ea22e1b6befbbb3325f348cdcfd5b1ee0c08cdd4 100644 (file)
@@ -2338,11 +2338,19 @@ void wxAuiToolBar::OnIdle(wxIdleEvent& evt)
             }
         }
     }
-
-    DoIdleUpdate();
     evt.Skip();
 }
 
+void wxAuiToolBar::UpdateWindowUI(long flags)
+{
+    if ( flags & wxUPDATE_UI_FROMIDLE )
+    {
+        DoIdleUpdate();
+    }
+
+    wxControl::UpdateWindowUI(flags);
+}
+
 void wxAuiToolBar::OnPaint(wxPaintEvent& WXUNUSED(evt))
 {
     wxAutoBufferedPaintDC dc(this);