fix compile issue on mingw32
This commit is contained in:
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…
Reference in New Issue