aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-06-06 06:14:18 -0700
committerJacek Antonelli2010-06-19 02:43:32 -0500
commit35af28cec1c16e66da3abff4d75a8a68dc381a72 (patch)
treee183627295f62f1d6564211f3f98db8984089067 /linden/indra/newview
parentRemoved 'Received animation state for unknown avatar' log spam (diff)
downloadmeta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.zip
meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.gz
meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.bz2
meta-impy-35af28cec1c16e66da3abff4d75a8a68dc381a72.tar.xz
Applied snowglobe-0-v14000-AvatarNameInWindowTitle_v1.patch and set the name in the window title only when running multiple instances
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/llappviewer.cpp6
-rw-r--r--linden/indra/newview/llstartup.cpp10
2 files changed, 13 insertions, 3 deletions
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index b8d0d14..35e7a46 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -235,6 +235,9 @@ BOOL gUseQuickTime = TRUE;
235BOOL gAcceptTOS = FALSE; 235BOOL gAcceptTOS = FALSE;
236BOOL gAcceptCriticalMessage = FALSE; 236BOOL gAcceptCriticalMessage = FALSE;
237 237
238std::string gSecondLife;
239std::string gWindowTitle;
240
238eLastExecEvent gLastExecEvent = LAST_EXEC_NORMAL; 241eLastExecEvent gLastExecEvent = LAST_EXEC_NORMAL;
239 242
240LLSD gDebugInfo; 243LLSD gDebugInfo;
@@ -314,9 +317,6 @@ const char* const VIEWER_WINDOW_CLASSNAME = "Imprudence";
314const char *VFS_DATA_FILE_BASE = "data.db2.x."; 317const char *VFS_DATA_FILE_BASE = "data.db2.x.";
315const char *VFS_INDEX_FILE_BASE = "index.db2.x."; 318const char *VFS_INDEX_FILE_BASE = "index.db2.x.";
316 319
317static std::string gSecondLife;
318static std::string gWindowTitle;
319
320std::string gLoginPage; 320std::string gLoginPage;
321std::vector<std::string> gLoginURIs; 321std::vector<std::string> gLoginURIs;
322static std::string gHelperURI; 322static std::string gHelperURI;
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 4cb7061..82b950e 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -214,6 +214,8 @@ std::string SCREEN_LAST_FILENAME = "screen_last.bmp";
214// 214//
215extern S32 gStartImageWidth; 215extern S32 gStartImageWidth;
216extern S32 gStartImageHeight; 216extern S32 gStartImageHeight;
217extern std::string gSecondLife;
218extern std::string gWindowTitle;
217 219
218// 220//
219// local globals 221// local globals
@@ -2144,6 +2146,14 @@ bool idle_startup()
2144 { 2146 {
2145 LL_DEBUGS("AppInitStartupState") << "STATE_INVENTORY_SEND" << LL_ENDL; 2147 LL_DEBUGS("AppInitStartupState") << "STATE_INVENTORY_SEND" << LL_ENDL;
2146 2148
2149 // Change the window title to include the avatar name if we're using multiple viewers -- MC
2150 if (gSavedSettings.getBOOL("AllowMultipleViewers"))
2151 {
2152 gWindowTitle = gSecondLife + " - " + firstname + " " + lastname;
2153 LLStringUtil::truncate(gWindowTitle, 255);
2154 gViewerWindow->getWindow()->setWindowTitle(gWindowTitle);
2155 }
2156
2147 // unpack thin inventory 2157 // unpack thin inventory
2148 LLUserAuth::options_t options; 2158 LLUserAuth::options_t options;
2149 options.clear(); 2159 options.clear();