[lua] Fix how separators are added into dialog's tabs (fix #4288)

This commit is contained in:
Martín Capello 2024-02-06 16:27:24 -03:00
parent 024c266231
commit 0c7759acf1

View File

@ -670,7 +670,7 @@ int Dialog_separator(lua_State* L)
}
dlg->mainWidgets.push_back(widget);
dlg->grid.addChildInCell(widget, 2, 1, ui::HORIZONTAL | ui::TOP);
dlg->currentGrid->addChildInCell(widget, 2, 1, ui::HORIZONTAL | ui::TOP);
dlg->hbox = nullptr;
lua_pushvalue(L, 1);