diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-21 10:34:33 +0100 |
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-05-21 10:34:33 +0100 |
| commit | 4bfe01fc3cea4b1534015931b077a2290b742324 (patch) | |
| tree | 83475cd13d1dae8ccc4595f11ce1ae1d47f3fa94 /indra/newview/llviewernetwork.cpp | |
| parent | b8921bc1b378d4bc0a84e2f0c9e1783c61340e0d (diff) | |
| parent | 9eaf8eaf729193542f2b766eba5cbc624806a53f (diff) | |
merge from viewer-public
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 |
