diff options
author | Roxie Linden <roxie@lindenlab.com> | 2010-05-20 00:05:23 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2010-05-20 00:05:23 -0700 |
commit | afef949533e575a8f0558ef8477eb8644d66c524 (patch) | |
tree | 8354d0f3e0f8a4c566b004ec86eebebb57b85cec /indra/newview/llviewernetwork.cpp | |
parent | 42796c938ba713b8f3aaff1b5d43d54021e223b8 (diff) | |
parent | d4b37309cb00108a761259d570ae9057658ad215 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llviewernetwork.cpp')
-rw-r--r-- | indra/newview/llviewernetwork.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llviewernetwork.cpp b/indra/newview/llviewernetwork.cpp index 7812867667..c76eee80f7 100644 --- a/indra/newview/llviewernetwork.cpp +++ b/indra/newview/llviewernetwork.cpp @@ -257,7 +257,11 @@ void LLGridManager::initialize(const std::string& grid_file) // load a grid from the command line. // if the actual grid name is specified from the command line, // set it as the 'selected' grid. - mGrid = gSavedSettings.getString("CmdLineGridChoice"); + std::string cmd_line_grid = gSavedSettings.getString("CmdLineGridChoice"); + if(!cmd_line_grid.empty()) + { + mGrid = getGridByLabel(cmd_line_grid); + } LL_INFOS("GridManager") << "Grid Name: " << mGrid << LL_ENDL; // If a command line login URI was passed in, so we should add the command |