MAINT-7206 Fixed crash on doubleclick deselecting last mute type from the context menu

meow-7.2.2
AndreyL ProductEngine 2017-03-15 01:24:59 +02:00
parent 805691796a
commit 7d38637873
1 changed files with 5 additions and 0 deletions

View File

@ -341,6 +341,11 @@ void LLBlockList::onCustomAction(const LLSD& userdata)
bool LLBlockList::isMenuItemChecked(const LLSD& userdata)
{
LLBlockedListItem* item = getBlockedItem();
if (!item)
{
return false;
}
const std::string command_name = userdata.asString();
if ("block_voice" == command_name)