Don't show tooltips for unnamed ESM4Named

macos_ci_fix
Alexei Kotov 1 year ago
parent 3f4591eb3b
commit 84cad3de01

@ -138,17 +138,17 @@ namespace MWClass
{ {
} }
bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return true; } std::string_view getName(const MWWorld::ConstPtr& ptr) const override
MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override
{ {
return ESM4Impl::getToolTipInfo(ptr.get<Record>()->mBase->mFullName, count); return ptr.get<Record>()->mBase->mFullName;
} }
std::string_view getName(const MWWorld::ConstPtr& ptr) const override MWGui::ToolTipInfo getToolTipInfo(const MWWorld::ConstPtr& ptr, int count) const override
{ {
return ptr.get<Record>()->mBase->mFullName; return ESM4Impl::getToolTipInfo(getName(ptr), count);
} }
bool hasToolTip(const MWWorld::ConstPtr& ptr) const override { return !getName(ptr).empty(); }
}; };
} }

Loading…
Cancel
Save