[FIXED] CATZ-583: Toolbar buttons no longer disable when restrictions are in place

meow-7.2.2
Kitty Barnett 2021-02-14 21:45:34 +01:00
parent c5e037d6fc
commit 8c9ffab8d6
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ ERlvBehaviour RlvBehaviourDictionary::getBehaviourFromString(const std::string&
ERlvLocalBhvrModifier eBhvrModifier;
const RlvBehaviourInfo* pBhvrInfo = getBehaviourInfo(strBhvr, eParamType, pfStrict, &eBhvrModifier);
// Filter out locally scoped modifier commands since they don't actually have a unique behaviour value of their own
return (pBhvrInfo && ERlvLocalBhvrModifier::Unknown != eBhvrModifier) ? pBhvrInfo->getBehaviourType() : RLV_BHVR_UNKNOWN;
return (pBhvrInfo && ERlvLocalBhvrModifier::Unknown == eBhvrModifier) ? pBhvrInfo->getBehaviourType() : RLV_BHVR_UNKNOWN;
}
bool RlvBehaviourDictionary::getCommands(const std::string& strMatch, ERlvParamType eParamType, std::list<std::string>& cmdList) const