diff options
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index feb85a7..63f76dc 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -626,7 +626,16 @@ void LLPanelLogin::addServer(const std::string& server) | |||
626 | i++; | 626 | i++; |
627 | } | 627 | } |
628 | } | 628 | } |
629 | grids->setCurrentByIndex(0); | 629 | |
630 | // when you first login select the default, otherwise last connected | ||
631 | if (gDisconnected) | ||
632 | { | ||
633 | grids->setSimple(gHippoGridManager->getCurrentGrid()->getGridNick()); | ||
634 | } | ||
635 | else | ||
636 | { | ||
637 | grids->setSimple(defaultGrid); | ||
638 | } | ||
630 | 639 | ||
631 | //LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); | 640 | //LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); |
632 | //combo->add(server, LLSD(domain_name) ); | 641 | //combo->add(server, LLSD(domain_name) ); |
@@ -767,13 +776,13 @@ void LLPanelLogin::refreshLoginPage() | |||
767 | if (!sInstance) return; | 776 | if (!sInstance) return; |
768 | 777 | ||
769 | sInstance->childSetVisible("create_new_account_text", | 778 | sInstance->childSetVisible("create_new_account_text", |
770 | !gHippoGridManager->getConnectedGrid()->getRegisterUrl().empty()); | 779 | !gHippoGridManager->getCurrentGrid()->getRegisterUrl().empty()); |
771 | sInstance->childSetVisible("forgot_password_text", | 780 | sInstance->childSetVisible("forgot_password_text", |
772 | !gHippoGridManager->getConnectedGrid()->getPasswordUrl().empty()); | 781 | !gHippoGridManager->getCurrentGrid()->getPasswordUrl().empty()); |
773 | 782 | ||
774 | // kick off a request to grab the url manually | 783 | // kick off a request to grab the url manually |
775 | gResponsePtr = LLIamHereLogin::build(sInstance); | 784 | gResponsePtr = LLIamHereLogin::build(sInstance); |
776 | std::string login_page = gHippoGridManager->getConnectedGrid()->getLoginPage(); | 785 | std::string login_page = gHippoGridManager->getCurrentGrid()->getLoginPage(); |
777 | if (!login_page.empty()) { | 786 | if (!login_page.empty()) { |
778 | LLHTTPClient::head(login_page, gResponsePtr); | 787 | LLHTTPClient::head(login_page, gResponsePtr); |
779 | } else { | 788 | } else { |
@@ -787,7 +796,7 @@ void LLPanelLogin::loadLoginPage() | |||
787 | if (!sInstance) return; | 796 | if (!sInstance) return; |
788 | 797 | ||
789 | 798 | ||
790 | std::string login_page = gHippoGridManager->getConnectedGrid()->getLoginPage(); | 799 | std::string login_page = gHippoGridManager->getCurrentGrid()->getLoginPage(); |
791 | if (login_page.empty()) { | 800 | if (login_page.empty()) { |
792 | sInstance->setSiteIsAlive(false); | 801 | sInstance->setSiteIsAlive(false); |
793 | return; | 802 | return; |