From 623efecc2fa787bd3678c7508eceef1c1a6929f6 Mon Sep 17 00:00:00 2001 From: "M. Liebmann" Date: Sun, 16 Mar 2014 11:56:35 +0100 Subject: [PATCH] CLuaInstance: Add debug output to CWindowDelete/ComponentsTextDelete --- src/gui/luainstance.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/luainstance.cpp b/src/gui/luainstance.cpp index f5a4456c2..3ec4c504d 100644 --- a/src/gui/luainstance.cpp +++ b/src/gui/luainstance.cpp @@ -1432,11 +1432,12 @@ int CLuaInstance::CWindowGetFooterHeight(lua_State *L) int CLuaInstance::CWindowDelete(lua_State *L) { + DBG("CLuaInstance::%s %d\n", __func__, lua_gettop(L)); CLuaCWindow *m = CWindowCheck(L, 1); if (!m) return 0; - m->w->kill(); + m->w->hide(); delete m; return 0; } @@ -1653,11 +1654,12 @@ int CLuaInstance::ComponentsTextScroll(lua_State *L) int CLuaInstance::ComponentsTextDelete(lua_State *L) { + DBG("CLuaInstance::%s %d\n", __func__, lua_gettop(L)); CLuaComponentsText *m = ComponentsTextCheck(L, 1); if (!m) return 0; - m->ct->kill(); + m->ct->hide(); delete m; return 0; }