[lua] Fix Dialog.data for checkboxes if the last pressed button was a checkbox

This commit is contained in:
David Capello 2020-04-04 19:41:30 -03:00
parent 150ca293ef
commit 2c3fd2171b

View File

@ -396,7 +396,8 @@ int Dialog_button_base(lua_State* L, T** outputWidget = nullptr)
Dialog_connect_signal(
L, 1, widget->Click,
[dlg, widget](lua_State* L, Event&){
dlg->lastButton = widget;
if (widget->type() == ui::kButtonWidget)
dlg->lastButton = widget;
});
closeWindowByDefault = false;
}