diff --git a/src/luaenginegui/luaengine/LuaEngineGui.cpp b/src/luaenginegui/luaengine/LuaEngineGui.cpp index e4e842d..7bf87de 100644 --- a/src/luaenginegui/luaengine/LuaEngineGui.cpp +++ b/src/luaenginegui/luaengine/LuaEngineGui.cpp @@ -1513,7 +1513,11 @@ int LuaEngineGui::getObjectText(lua_State *L_p) if (getArgumentCount(L_p) >= 1) { void *pointer = getPointer(L_p, 1); if (pointer != NULL) { - if (((QObject*)pointer)->inherits("QAction")) { + if (((QObject*)pointer)->inherits("LEListWidgetItem")) { + pushVariant(L_p, ((LEListWidgetItem*)pointer)->item()->text()); + return 1; + } + else if (((QObject*)pointer)->inherits("QAction")) { pushVariant(L_p, ((QAction*)pointer)->text()); return 1; }