diff options
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 824c5b0..524ecf6 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -602,18 +602,17 @@ void LLPanelLogin::addServer(const std::string& server) | |||
602 | const std::string &defaultGrid = gHippoGridManager->getDefaultGridNick(); | 602 | const std::string &defaultGrid = gHippoGridManager->getDefaultGridNick(); |
603 | 603 | ||
604 | LLComboBox *grids = sInstance->getChild<LLComboBox>("server_combo"); | 604 | LLComboBox *grids = sInstance->getChild<LLComboBox>("server_combo"); |
605 | S32 selectIndex = -1, i = 0; | 605 | S32 i = 0; |
606 | grids->removeall(); | 606 | grids->removeall(); |
607 | if (defaultGrid != "") { | 607 | if (defaultGrid != "") { |
608 | grids->add(defaultGrid); | 608 | grids->add(defaultGrid); |
609 | selectIndex = i++; | 609 | i++; |
610 | } | 610 | } |
611 | HippoGridManager::GridIterator it, end = gHippoGridManager->endGrid(); | 611 | HippoGridManager::GridIterator it, end = gHippoGridManager->endGrid(); |
612 | for (it = gHippoGridManager->beginGrid(); it != end; ++it) { | 612 | for (it = gHippoGridManager->beginGrid(); it != end; ++it) { |
613 | const std::string &grid = it->second->getGridNick(); | 613 | const std::string &grid = it->second->getGridNick(); |
614 | if (grid != defaultGrid) { | 614 | if (grid != defaultGrid) { |
615 | grids->add(grid); | 615 | grids->add(grid); |
616 | //if (grid == mCurGrid) selectIndex = i; | ||
617 | i++; | 616 | i++; |
618 | } | 617 | } |
619 | } | 618 | } |