DRTVWR-476: LLChannelManager depends on LLUI. Tell LLSingleton.

master
Nat Goodspeed 2019-12-18 15:29:23 -05:00
parent 82bdbd5e41
commit 1bd2a91d00
1 changed files with 8 additions and 1 deletions

View File

@ -48,11 +48,18 @@ LLChannelManager::LLChannelManager()
LLAppViewer::instance()->setOnLoginCompletedCallback(boost::bind(&LLChannelManager::onLoginCompleted, this));
mChannelList.clear();
mStartUpChannel = NULL;
if(!gViewerWindow)
{
LL_ERRS() << "LLChannelManager::LLChannelManager() - viwer window is not initialized yet" << LL_ENDL;
}
// We don't actually need this instance right now, but our
// cleanupSingleton() method deletes LLScreenChannels, which need to
// unregister from LLUI. Calling LLUI::instance() here establishes the
// dependency so LLSingletonBase::deleteAll() calls our deleteSingleton()
// before LLUI::deleteSingleton().
LLUI::instance();
}
//--------------------------------------------------------------------------