diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 009cdd2..5a5aa8d 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -811,26 +811,11 @@ BOOL idle_startup() | |||
811 | 811 | ||
812 | if (show_connect_box) | 812 | if (show_connect_box) |
813 | { | 813 | { |
814 | // TODO only set loginuri based on server choice if ! USE_VIEWER_AUTH | 814 | if ( LLPanelLogin::isGridComboDirty() ) |
815 | LLString server_label; | ||
816 | S32 domain_name_index; | ||
817 | BOOL user_picked_server = LLPanelLogin::getServer( server_label, domain_name_index ); | ||
818 | if((EGridInfo)domain_name_index == GRID_INFO_OTHER) | ||
819 | { | 815 | { |
820 | // Since the grid chosen was an 'other', set the choice by string. | 816 | // User picked a grid from the popup, so clear the |
821 | LLViewerLogin::getInstance()->setGridChoice(server_label); | 817 | // stored uris and they will be reacquired from the grid choice. |
822 | } | ||
823 | else | ||
824 | { | ||
825 | // Set the choice according to index. | ||
826 | LLViewerLogin::getInstance()->setGridChoice((EGridInfo)domain_name_index); | ||
827 | } | ||
828 | |||
829 | if ( user_picked_server ) | ||
830 | { // User picked a grid from the popup, so clear the | ||
831 | // stored uris and they will be re-generated from the GridChoice | ||
832 | sAuthUris.clear(); | 818 | sAuthUris.clear(); |
833 | LLViewerLogin::getInstance()->resetURIs(); | ||
834 | } | 819 | } |
835 | 820 | ||
836 | LLString location; | 821 | LLString location; |