From 2cc518dcaffd345c498f671354b3dd504f2f4195 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 24 Feb 2017 04:17:14 +0100 Subject: [PATCH] Show itemstring as tooltip if no item description --- src/guiFormSpecMenu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index 19cac6241..330124fe1 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -2394,6 +2394,9 @@ void GUIFormSpecMenu::drawList(const ListDrawSpec &s, int phase, utf8_to_wide(item.getDefinition(m_client->idef()).description); else tooltip_text = utf8_to_wide(desc); + // Show itemstring as fallback for easier debugging + if (!item.name.empty() && tooltip_text.empty()) + tooltip_text = utf8_to_wide(item.name); } if (tooltip_text != L"") { std::vector tt_rows = str_split(tooltip_text, L'\n');