From f5bdc04ab5b47bd094ba0ced5f086e8fe6b12298 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 9 Feb 2019 15:46:02 +0100 Subject: [PATCH] Don't append itemname to itemname in tooltip (#8176) --- src/gui/guiFormSpecMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 + "]"); } } -- 2.25.1