From: Wuzzy Date: Sat, 9 Feb 2019 14:46:02 +0000 (+0100) Subject: Don't append itemname to itemname in tooltip (#8176) X-Git-Tag: 5.0.0~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f5bdc04ab5b47bd094ba0ced5f086e8fe6b12298;p=oweals%2Fminetest.git Don't append itemname to itemname in tooltip (#8176) --- diff --git a/src/gui/guiFormSpecMenu.cpp b/src/gui/guiFormSpecMenu.cpp index c52a6ee27..6c404728f 100644 --- a/src/gui/guiFormSpecMenu.cpp +++ b/src/gui/guiFormSpecMenu.cpp @@ -2424,7 +2424,7 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int layer, if (!item.name.empty()) { if (tooltip_text.empty()) tooltip_text = utf8_to_wide(item.name); - if (m_tooltip_append_itemname) + else if (m_tooltip_append_itemname) tooltip_text += utf8_to_wide(" [" + item.name + "]"); } }