Append username to window title upon connecting to grid.

This commit is contained in:
Shyotl
2012-02-22 17:51:06 -06:00
parent c2da7f4570
commit 3d39e443fe
8 changed files with 36 additions and 0 deletions

View File

@@ -1886,6 +1886,12 @@ bool idle_startup()
// OGPX : Inventory root might be null in OGP.
// && gAgent.mInventoryRootID.notNull())
{
std::string name = firstname;
std::string last_name = lastname;
LLStringUtil::toLower(last_name);
if(last_name != "resident")
name += " " + lastname;
gViewerWindow->getWindow()->setTitle(LLAppViewer::instance()->getWindowTitle() + "- " + name);
LLStartUp::setStartupState( STATE_WORLD_INIT );
}
else