Remove early return that causes wrong spinner widget behavior.

This commit is contained in:
Deve 2018-11-19 21:53:52 +01:00
parent 70e82142d1
commit 95ecd55ce8

View File

@ -771,12 +771,6 @@ EventPropagation EventHandler::onWidgetActivated(GUIEngine::Widget* w, const int
SpinnerWidget* spinner = dynamic_cast<SpinnerWidget*>(w);
spinner->activateSelectedButton();
}
//FIXME: that early return may be not needed
if (ModalDialog::isADialogActive() && (parent == NULL || parent->m_type != GUIEngine::WTYPE_RIBBON))
{
if (w->m_event_handler == NULL) return EVENT_LET;
}
if (w->m_event_handler != NULL)
{