SL-12173 Crash on setShape
parent
7d7b60a9be
commit
07635d22f5
|
|
@ -1994,6 +1994,11 @@ void LLViewerWindow::initBase()
|
|||
LLPanel* panel_holder = main_view->getChild<LLPanel>("toolbar_view_holder");
|
||||
// Load the toolbar view from file
|
||||
gToolBarView = LLUICtrlFactory::getInstance()->createFromFile<LLToolBarView>("panel_toolbar_view.xml", panel_holder, LLDefaultChildRegistry::instance());
|
||||
if (!gToolBarView)
|
||||
{
|
||||
LL_ERRS() << "Failed to initialize viewer: Viewer couldn't process file panel_toolbar_view.xml, "
|
||||
<< "if this problem happens again, please validate your installation." << LL_ENDL;
|
||||
}
|
||||
gToolBarView->setShape(panel_holder->getLocalRect());
|
||||
// Hide the toolbars for the moment: we'll make them visible after logging in world (see LLViewerWindow::initWorldUI())
|
||||
gToolBarView->setVisible(FALSE);
|
||||
|
|
|
|||
Loading…
Reference in New Issue