summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_toptoolbar.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-30 21:37:39 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-30 21:37:39 +0000
commit5c89906040b2ea1f307f3e337655a9429b858207 (patch)
treebda0c674c82f26b154de6a063d0124d6c8906619 /plugins/MirLua/src/m_toptoolbar.cpp
parentce1c33a2c65a605929c5fcc7c075c76c3b27ea68 (diff)
MirLua: common code moved to m_core.h
git-svn-id: http://svn.miranda-ng.org/main/trunk@14465 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_toptoolbar.cpp')
-rw-r--r--plugins/MirLua/src/m_toptoolbar.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_toptoolbar.cpp b/plugins/MirLua/src/m_toptoolbar.cpp
index 4e96f645e5..3e26f962dc 100644
--- a/plugins/MirLua/src/m_toptoolbar.cpp
+++ b/plugins/MirLua/src/m_toptoolbar.cpp
@@ -104,6 +104,9 @@ static int lua_OnTopToolBarLoaded(lua_State *L)
HANDLE res = ::HookEventObjParam(ME_TTB_MODULELOADED, CMLua::HookEventObjParam, L, ref);
lua_pushlightuserdata(L, res);
+ Hooks.insert(res);
+ HookRefs.insert(new HandleRefParam(L, res, ref));
+
return 1;
}