Correct condition check for vetoed events
This commit is contained in:
@@ -53,9 +53,7 @@ void wxQtSpinButton::stepBy(int steps)
|
|||||||
directionEvent.SetInt(value() + steps * singleStep());
|
directionEvent.SetInt(value() + steps * singleStep());
|
||||||
directionEvent.SetEventObject(handler);
|
directionEvent.SetEventObject(handler);
|
||||||
|
|
||||||
handler->HandleWindowEvent(directionEvent);
|
if ( !handler->HandleWindowEvent(directionEvent) || directionEvent.IsAllowed() )
|
||||||
|
|
||||||
if ( directionEvent.IsAllowed() )
|
|
||||||
{
|
{
|
||||||
QSpinBox::stepBy(steps);
|
QSpinBox::stepBy(steps);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user