mirror of
https://github.com/edubart/otclient.git
synced 2025-04-30 09:39:21 +02:00
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
|
||||
auto self = asUIWidget();
|
||||
g_dispatcher.addEvent([=]() {
|
||||
g_dispatcher.addEvent([self,child]() {
|
||||
// always focus new child
|
||||
if(child->isFocusable() && child->isExplicitlyVisible() && child->isExplicitlyEnabled())
|
||||
self->focusChild(child, Fw::ActiveFocusReason);
|
||||
|
Loading…
x
Reference in New Issue
Block a user