From 17b96e4819e300662fe3596af702c23c6f208364 Mon Sep 17 00:00:00 2001 From: Inky Date: Mon, 20 May 2019 16:41:41 +0300 Subject: [PATCH] Fixed: tooltip item buff update --HG-- branch : patches-from-atys --- code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp index 1c01d036c..1c1c04e59 100644 --- a/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp +++ b/code/ryzom/client/src/interface_v3/dbctrl_sheet.cpp @@ -3123,6 +3123,7 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const { string luaMethodName = ( (item->Family == ITEMFAMILY::CRYSTALLIZED_SPELL) ? "updateCrystallizedSpellTooltip" : "updateBuffItemTooltip"); CDBCtrlSheet *ctrlSheet = const_cast(this); + CCtrlBase *ctrlBase = const_cast(this); if ( ! getInventory().isItemInfoUpToDate(getInventory().getItemSlotId(ctrlSheet))) { // Prepare the waiter @@ -3136,7 +3137,10 @@ void CDBCtrlSheet::getContextHelp(ucstring &help) const } if (!_ContextHelp.empty()) + { help= _ContextHelp; + ctrlBase->setDefaultContextHelp(ucstring()); + } else help = ControlSheetTooltipUpdater.infoValidated(ctrlSheet, luaMethodName); }