From 4e5cf5ee914732ae30e261f08b270f07a69630f4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 29 Nov 2016 13:03:48 +0300 Subject: BBBF_ANSITOOLTIP - unused flag removed --- plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/MirLua') diff --git a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp index f8f7ce7b7f..81da1b92a9 100644 --- a/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp +++ b/plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp @@ -18,11 +18,8 @@ static BBButton* MakeBBButton(lua_State *L) bbb->bbbFlags = lua_tointeger(L, -1); lua_pop(L, 1); - if ((bbb->bbbFlags & BBBF_ANSITOOLTIP)) - bbb->bbbFlags &= ~BBBF_ANSITOOLTIP; - lua_getfield(L, -1, "Tooltip"); - bbb->ptszTooltip = mir_utf8decodeW(lua_tostring(L, -1)); + bbb->pwszTooltip = mir_utf8decodeW(lua_tostring(L, -1)); lua_pop(L, 1); lua_getfield(L, -1, "Icon"); @@ -62,7 +59,7 @@ static int lua_ModifyButton(lua_State *L) lua_pushinteger(L, res); mir_free(bbb->pszModuleName); - mir_free(bbb->ptszTooltip); + mir_free(bbb->pwszTooltip); mir_free(bbb); return 1; -- cgit v1.2.3