Skip to content
Snippets Groups Projects
Commit 92d84a9c authored by Mnikolenko Productengine's avatar Mnikolenko Productengine
Browse files

MAINT-7022 Crash in LLFloaterIMContainer::visibleContextMenuItem()

parent 59601836
No related branches found
No related tags found
No related merge requests found
...@@ -1505,15 +1505,21 @@ bool LLFloaterIMContainer::checkContextMenuItem(const std::string& item, uuid_ve ...@@ -1505,15 +1505,21 @@ bool LLFloaterIMContainer::checkContextMenuItem(const std::string& item, uuid_ve
bool LLFloaterIMContainer::visibleContextMenuItem(const LLSD& userdata) bool LLFloaterIMContainer::visibleContextMenuItem(const LLSD& userdata)
{ {
const LLConversationItem *conversation_item = getCurSelectedViewModelItem();
if(!conversation_item)
{
return false;
}
const std::string& item = userdata.asString(); const std::string& item = userdata.asString();
if ("show_mute" == item) if ("show_mute" == item)
{ {
return !isMuted(getCurSelectedViewModelItem()->getUUID()); return !isMuted(conversation_item->getUUID());
} }
else if ("show_unmute" == item) else if ("show_unmute" == item)
{ {
return isMuted(getCurSelectedViewModelItem()->getUUID()); return isMuted(conversation_item->getUUID());
} }
return true; return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment