From 43ec2293b69ed3eab4140c7bc49ae5b0d2799a09 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Wed, 17 Jun 2015 10:25:19 +0000 Subject: MirLua: added m_popup module git-svn-id: http://svn.miranda-ng.org/main/trunk@14232 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_genmenu.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/MirLua/src/m_genmenu.cpp') diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 2e4445d71d..fb651b1515 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -5,6 +5,11 @@ static CLISTMENUITEM* MakeMenuItem(lua_State *L) CLISTMENUITEM *pmi = (CLISTMENUITEM*)mir_calloc(sizeof(CLISTMENUITEM)); pmi->cbSize = sizeof(CLISTMENUITEM); + lua_pushstring(L, "Flags"); + lua_gettable(L, -2); + pmi->flags = lua_tointeger(L, -1); + lua_pop(L, 1); + lua_pushstring(L, "Name"); lua_gettable(L, -2); if (!(pmi->flags & CMIF_UNICODE)) @@ -13,11 +18,6 @@ static CLISTMENUITEM* MakeMenuItem(lua_State *L) pmi->ptszName = mir_utf8decodeT((char*)luaL_checkstring(L, -1)); lua_pop(L, 1); - lua_pushstring(L, "Flags"); - lua_gettable(L, -2); - pmi->flags = lua_tointeger(L, -1); - lua_pop(L, 1); - lua_pushstring(L, "Position"); lua_gettable(L, -2); pmi->position = lua_tointeger(L, -1); -- cgit v1.2.3