mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 19:01:25 +02:00
Merge remote-tracking branch 'check/next-cc'
...only build-tested, needs fixes
This commit is contained in:
@@ -963,6 +963,10 @@ int CLuaInstance::MenuAddItem(lua_State *L)
|
||||
options_count++;
|
||||
}
|
||||
lua_pop(L, 1);
|
||||
if (options_count == 0) {
|
||||
m->m->addItem(new CMenuSeparator(CMenuSeparator::STRING | CMenuSeparator::LINE, "ERROR! (options_count)", NONEXISTANT_LOCALE));
|
||||
return 0;
|
||||
}
|
||||
|
||||
CMenuOptionChooser::keyval_ext *kext = (CMenuOptionChooser::keyval_ext *)calloc(options_count, sizeof(CMenuOptionChooser::keyval_ext));
|
||||
m->tofree.push_back(kext);
|
||||
@@ -1224,7 +1228,7 @@ int CLuaInstance::MessageboxExec(lua_State *L)
|
||||
const char *val = lua_tostring(L, -2);
|
||||
table_key mb[] = {
|
||||
{ "center1", CMessageBox::mbBtnAlignCenter1 },
|
||||
{ "center2", CMessageBox::mbBtnAlignCenter1 },
|
||||
{ "center2", CMessageBox::mbBtnAlignCenter2 },
|
||||
{ "left", CMessageBox::mbBtnAlignLeft },
|
||||
{ "right", CMessageBox::mbBtnAlignRight },
|
||||
{ NULL, 0 }
|
||||
|
Reference in New Issue
Block a user