Address Issue 1732: Display name in the Communication box

Adds Chat Tabs namesystem combobox to Adv. Chat->Chat UI.
This commit is contained in:
Inusaito Sayori
2014-11-10 16:09:43 -05:00
parent 60d9301646
commit e3d45d99da
5 changed files with 34 additions and 1 deletions

View File

@@ -404,7 +404,17 @@ void LLFloaterIMPanel::onAvatarNameLookup(const LLAvatarName& avatar_name)
std::string title;
LLAvatarNameCache::getPNSName(avatar_name, title);
setTitle(title);
// Singu Note: We could set tab name here, too now.
const S32& ns(gSavedSettings.getS32("IMNameSystem"));
LLAvatarNameCache::getPNSName(avatar_name, title, ns);
if (!ns || ns == 3) // Remove Resident, if applicable.
{
size_t pos(title.find(" Resident"));
if (pos != std::string::npos && !gSavedSettings.getBOOL("LiruShowLastNameResident"))
title.erase(pos, 9);
}
setShortTitle(title);
if (LLMultiFloater* mf = dynamic_cast<LLMultiFloater*>(getParent()))
mf->updateFloaterTitle(this);
}
LLFloaterIMPanel::~LLFloaterIMPanel()