Fixed: Inventory and npc trade items list did not show crafted item names.

--HG--
branch : develop
feature/streamed-package
Nimetu 5 years ago
parent 2220c41a46
commit 25d04f65bd

@ -100,7 +100,6 @@ void CControlSheetInfoWaiter::infoReceived()
ucstring CControlSheetInfoWaiter::infoValidated() const ucstring CControlSheetInfoWaiter::infoValidated() const
{ {
ucstring help; ucstring help;
if (CtrlSheet && !LuaMethodName.empty()) if (CtrlSheet && !LuaMethodName.empty())
{ {
// delegate setup of context he help ( & window ) to lua // delegate setup of context he help ( & window ) to lua
@ -3396,6 +3395,9 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const
// call lua function to update tooltip window // call lua function to update tooltip window
_ItemInfoWaiter.sendRequest(); _ItemInfoWaiter.sendRequest();
help = _ItemInfoWaiter.infoValidated(); help = _ItemInfoWaiter.infoValidated();
// its expected to get at least item name back
if (help.empty())
help = getItemActualName();
} }
else if (!_ContextHelp.empty()) else if (!_ContextHelp.empty())
{ {

Loading…
Cancel
Save