]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/spinbutt.cpp
support accelerators for buttons too (slightly modified patch 1549012)
[wxWidgets.git] / src / mac / carbon / spinbutt.cpp
index 560ab64352f4920b9ef3c8186c2352d0399d68c6..55de645d54390cfada5f3f070d763e14352b052e 100644 (file)
@@ -124,6 +124,11 @@ void wxSpinButton::MacHandleValueChanged( int inc )
     else
         scrollEvent = wxEVT_SCROLL_THUMBTRACK;
 
+    // Do not send an event if the value has not actually changed
+    // (Also works for wxSpinCtrl)
+    if ( m_value == oldValue )
+        return;
+
     wxSpinEvent event( scrollEvent, m_windowId );
 
     event.SetPosition( m_value );