aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-08-23 08:23:18 -0700
committerMcCabe Maxsted2010-08-28 05:01:17 -0700
commit1b28ed39b8ffbd38ab68e99ad08349edfd24d214 (patch)
treea516a89391141eb6f027b51789d7c459cd6a16ec /linden/indra/newview/llstartup.cpp
parentMake the 'allow anyone to X' checkboxes in the edit window behave like they d... (diff)
downloadmeta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.zip
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.gz
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.bz2
meta-impy-1b28ed39b8ffbd38ab68e99ad08349edfd24d214.tar.xz
Added grid info to the title bar along with usernames when allow multiple instances is enabled
Diffstat (limited to '')
-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 }