fix compile issue on mingw32

master
Eduardo Bart 13 years ago
parent 7487931b87
commit c07dd1066b

@ -353,7 +353,7 @@ void UIWidget::addChild(const UIWidgetPtr& child)
// focus must be set after the style has been loaded // focus must be set after the style has been loaded
auto self = asUIWidget(); auto self = asUIWidget();
g_dispatcher.addEvent([=]() { g_dispatcher.addEvent([self,child]() {
// always focus new child // always focus new child
if(child->isFocusable() && child->isExplicitlyVisible() && child->isExplicitlyEnabled()) if(child->isFocusable() && child->isExplicitlyVisible() && child->isExplicitlyEnabled())
self->focusChild(child, Fw::ActiveFocusReason); self->focusChild(child, Fw::ActiveFocusReason);

Loading…
Cancel
Save