EXP-1384 FIX Voice requests not received in FUI viewer

meow-7.2.2
Richard Nelson 2011-10-17 14:56:44 -07:00
parent a2e32429bb
commit 54bc99669c
1 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,7 @@
#include "llnearbychat.h"
#include "llspeakers.h" //for LLIMSpeakerMgr
#include "lltextbox.h"
#include "lltoolbarview.h"
#include "llviewercontrol.h"
#include "llviewerparcelmgr.h"
@ -1676,9 +1677,14 @@ LLCallDialog::~LLCallDialog()
BOOL LLCallDialog::postBuild()
{
if (!LLDockableFloater::postBuild())
if (!LLDockableFloater::postBuild() || !gToolBarView)
return FALSE;
LLView *anchor_panel = gToolBarView->findChildView("speak");
if (anchor_panel)
{
setDockControl(new LLDockControl(anchor_panel, this, getDockTongue(), LLDockControl::TOP));
}
return TRUE;
}