]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/buttonbar.cpp
Don't needlessly indirect through NSNotificationCenter.
[wxWidgets.git] / src / generic / buttonbar.cpp
index 091dfd01b192905be55eae253d674324a2722254..512352bf79414e16c7161902bf1ec0a910f386e7 100644 (file)
@@ -549,7 +549,7 @@ void wxButtonToolBar::OnLeftUp(wxMouseEvent& event)
         {
             wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, tool->GetId());
             event.SetEventObject(tool->GetButton());
-            if (!ProcessEvent(event))
+            if (!GetEventHandler()->ProcessEvent(event))
                 event.Skip();
         }
     }