Fix dialog control table loading when there are buttons
This commit is contained in:
parent
bfa5a8df1e
commit
6308104031
1 changed files with 1 additions and 0 deletions
|
@ -424,6 +424,7 @@ namespace Automation4 {
|
|||
luaL_error(L, "Cannot create config dialog from something non-table");
|
||||
|
||||
// Ok, so there is a table with controls
|
||||
lua_pushvalue(L, 1);
|
||||
lua_for_each(L, [&] {
|
||||
if (!lua_istable(L, -1))
|
||||
luaL_error(L, "bad control table entry");
|
||||
|
|
Loading…
Reference in a new issue