Skip to content
Snippets Groups Projects
Commit 078c5a2c authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-5024 crash in LLInspectToast

parent ad854873
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,11 @@ void LLInspectToast::onOpen(const LLSD& notification_id) ...@@ -89,6 +89,11 @@ void LLInspectToast::onOpen(const LLSD& notification_id)
mConnection = toast->setOnToastDestroyedCallback(boost::bind(&LLInspectToast::onToastDestroy, this, _1)); mConnection = toast->setOnToastDestroyedCallback(boost::bind(&LLInspectToast::onToastDestroy, this, _1));
LLPanel * panel = toast->getPanel(); LLPanel * panel = toast->getPanel();
if (panel == NULL)
{
LL_WARNS() << "Could not get toast's panel." << LL_ENDL;
return;
}
panel->setVisible(TRUE); panel->setVisible(TRUE);
panel->setMouseOpaque(FALSE); panel->setMouseOpaque(FALSE);
if(mPanel != NULL && mPanel->getParent() == this) if(mPanel != NULL && mPanel->getParent() == this)
......
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