aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 + "]");
}
}