Skip to content
Snippets Groups Projects
Commit a6833096 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-15881 Crash at setCommitCallback

parent cb9c8526
No related branches found
No related tags found
No related merge requests found
...@@ -558,9 +558,15 @@ class LLChatHistoryHeader: public LLPanel ...@@ -558,9 +558,15 @@ class LLChatHistoryHeader: public LLPanel
mTimeBoxTextBox = getChild<LLTextBox>("time_box"); mTimeBoxTextBox = getChild<LLTextBox>("time_box");
mInfoCtrl = LLUICtrlFactory::getInstance()->createFromFile<LLUICtrl>("inspector_info_ctrl.xml", this, LLPanel::child_registry_t::instance()); mInfoCtrl = LLUICtrlFactory::getInstance()->createFromFile<LLUICtrl>("inspector_info_ctrl.xml", this, LLPanel::child_registry_t::instance());
llassert(mInfoCtrl != NULL); if (mInfoCtrl)
mInfoCtrl->setCommitCallback(boost::bind(&LLChatHistoryHeader::onClickInfoCtrl, mInfoCtrl)); {
mInfoCtrl->setVisible(FALSE); mInfoCtrl->setCommitCallback(boost::bind(&LLChatHistoryHeader::onClickInfoCtrl, mInfoCtrl));
mInfoCtrl->setVisible(FALSE);
}
else
{
LL_ERRS() << "Failed to create an interface element due to missing or corrupted file inspector_info_ctrl.xml" << LL_ENDL;
}
return LLPanel::postBuild(); return LLPanel::postBuild();
} }
......
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