aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2019-02-09 15:46:02 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2019-02-09 15:46:02 +0100
commitf5bdc04ab5b47bd094ba0ced5f086e8fe6b12298 (patch)
tree10c40f624ee85c9d64d2bf9dff6d8a3159555238 /src/gui
parentd5456da69de6d74206a8513fc53db38c7dd4bd22 (diff)
downloadminetest-f5bdc04ab5b47bd094ba0ced5f086e8fe6b12298.tar.gz
minetest-f5bdc04ab5b47bd094ba0ced5f086e8fe6b12298.tar.bz2
minetest-f5bdc04ab5b47bd094ba0ced5f086e8fe6b12298.zip
Don't append itemname to itemname in tooltip (#8176)
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/guiFormSpecMenu.cpp2
1 files changed, 1 insertions, 1 deletions
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 + "]");
}
}