summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-29 13:03:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-29 13:03:48 +0300
commit4e5cf5ee914732ae30e261f08b270f07a69630f4 (patch)
treea90387dbcb25b92edd54cb2d7b0d706fa4ff26f9 /plugins/MirLua
parent16b38b3be1547e49655683a912fb18e84c67f312 (diff)
BBBF_ANSITOOLTIP - unused flag removed
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/Modules/m_msg_buttonsbar/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
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;