fix compile issue on mingw32

This commit is contained in:
Eduardo Bart 2011-11-10 03:33:16 -02:00
parent 7487931b87
commit c07dd1066b
1 changed files with 1 additions and 1 deletions

View File

@ -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);