diff options
author | McCabe Maxsted | 2010-06-06 06:14:18 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:32 -0500 |
commit | 35af28cec1c16e66da3abff4d75a8a68dc381a72 (patch) | |
tree | e183627295f62f1d6564211f3f98db8984089067 /linden/indra/newview/llstartup.cpp | |
parent | Removed 'Received animation state for unknown avatar' log spam (diff) | |
download | meta-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/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 | // |
215 | extern S32 gStartImageWidth; | 215 | extern S32 gStartImageWidth; |
216 | extern S32 gStartImageHeight; | 216 | extern S32 gStartImageHeight; |
217 | extern std::string gSecondLife; | ||
218 | extern 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(); |