diff --git a/src/qt/spinbutt.cpp b/src/qt/spinbutt.cpp index bca7ea658e..7ae3c303fb 100644 --- a/src/qt/spinbutt.cpp +++ b/src/qt/spinbutt.cpp @@ -53,9 +53,7 @@ void wxQtSpinButton::stepBy(int steps) directionEvent.SetInt(value() + steps * singleStep()); directionEvent.SetEventObject(handler); - handler->HandleWindowEvent(directionEvent); - - if ( directionEvent.IsAllowed() ) + if ( !handler->HandleWindowEvent(directionEvent) || directionEvent.IsAllowed() ) { QSpinBox::stepBy(steps); }