aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r--linden/indra/newview/llstartup.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index b12c253..e438f0c 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -2173,7 +2173,14 @@ bool idle_startup()
2173 // Change the window title to include the avatar name if we're using multiple viewers -- MC 2173 // Change the window title to include the avatar name if we're using multiple viewers -- MC
2174 if (gSavedSettings.getBOOL("AllowMultipleViewers")) 2174 if (gSavedSettings.getBOOL("AllowMultipleViewers"))
2175 { 2175 {
2176 gWindowTitle = gSecondLife + " - " + firstname + " " + lastname; 2176 LLStringUtil::format_map_t args;
2177 args["[FIRST_NAME]"] = firstname;
2178 args["[LAST_NAME]"] = lastname;
2179 args["[GRID_NAME]"] = (gHippoGridManager->getConnectedGrid()->getGridName().empty()) ?
2180 gHippoGridManager->getConnectedGrid()->getGridNick() :
2181 gHippoGridManager->getConnectedGrid()->getGridName();
2182 std::string title_text = LLTrans::getString("TitleBarMultiple", args);
2183 gWindowTitle = gSecondLife + " - " + title_text;
2177 LLStringUtil::truncate(gWindowTitle, 255); 2184 LLStringUtil::truncate(gWindowTitle, 255);
2178 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle); 2185 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle);
2179 } 2186 }