diff options
-rw-r--r-- | ChangeLog.txt | 9 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 8 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 4 |
4 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 9cba409..b992e08 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,14 @@ | |||
1 | 2008-12-10 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2008-12-10 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * linden/indra/newview/llpanellogin.cpp: | ||
4 | Fix grid selector having a duplicate entry. [#24] | ||
5 | Patch by Balp Allen. | ||
6 | * linden/indra/newview/llpanellogin.h: | ||
7 | Ditto. | ||
8 | * linden/indra/newview/llstartup.cpp: | ||
9 | Ditto. | ||
10 | |||
11 | |||
3 | * linden/indra/newview/llurlhistory.cpp: | 12 | * linden/indra/newview/llurlhistory.cpp: |
4 | Better warning when url_history.xml save fails. | 13 | Better warning when url_history.xml save fails. |
5 | 14 | ||
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 40a3a7f..a495516 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -712,6 +712,14 @@ void LLPanelLogin::addServer(const std::string& server, S32 domain_name) | |||
712 | combo->setCurrentByIndex(0); | 712 | combo->setCurrentByIndex(0); |
713 | } | 713 | } |
714 | 714 | ||
715 | |||
716 | // static | ||
717 | void LLPanelLogin::setServer(S32 domain_name) | ||
718 | { | ||
719 | LLComboBox* combo = sInstance->getChild<LLComboBox>("server_combo"); | ||
720 | combo->setCurrentByIndex(domain_name); | ||
721 | } | ||
722 | |||
715 | // static | 723 | // static |
716 | void LLPanelLogin::getFields(std::string &firstname, std::string &lastname, std::string &password, | 724 | void LLPanelLogin::getFields(std::string &firstname, std::string &lastname, std::string &password, |
717 | BOOL &remember) | 725 | BOOL &remember) |
diff --git a/linden/indra/newview/llpanellogin.h b/linden/indra/newview/llpanellogin.h index 539997b..78b0a22 100644 --- a/linden/indra/newview/llpanellogin.h +++ b/linden/indra/newview/llpanellogin.h | |||
@@ -87,6 +87,7 @@ public: | |||
87 | const std::string& password, BOOL remember); | 87 | const std::string& password, BOOL remember); |
88 | 88 | ||
89 | static void addServer(const std::string& server, S32 domain_name); | 89 | static void addServer(const std::string& server, S32 domain_name); |
90 | static void setServer(S32 domain_name); | ||
90 | static void refreshLocation( bool force_visible ); | 91 | static void refreshLocation( bool force_visible ); |
91 | 92 | ||
92 | static void getFields(std::string& firstname, std::string& lastname, | 93 | static void getFields(std::string& firstname, std::string& lastname, |
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 625b1d8..6371f2b 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2458,14 +2458,14 @@ void login_show() | |||
2458 | // UI textures have been previously loaded in doPreloadImages() | 2458 | // UI textures have been previously loaded in doPreloadImages() |
2459 | 2459 | ||
2460 | LL_DEBUGS("AppInit") << "Setting Servers" << LL_ENDL; | 2460 | LL_DEBUGS("AppInit") << "Setting Servers" << LL_ENDL; |
2461 | 2461 | LL_INFOS("AppInit") << "getGridChoice is " << LLViewerLogin::getInstance()->getGridChoice() << LL_ENDL; | |
2462 | LLPanelLogin::addServer(LLViewerLogin::getInstance()->getGridLabel(), LLViewerLogin::getInstance()->getGridChoice()); | ||
2463 | 2462 | ||
2464 | LLViewerLogin* vl = LLViewerLogin::getInstance(); | 2463 | LLViewerLogin* vl = LLViewerLogin::getInstance(); |
2465 | for(int grid_index = GRID_INFO_NONE + 1; grid_index < GRID_INFO_OTHER; ++grid_index) | 2464 | for(int grid_index = GRID_INFO_NONE + 1; grid_index < GRID_INFO_OTHER; ++grid_index) |
2466 | { | 2465 | { |
2467 | LLPanelLogin::addServer(vl->getKnownGridLabel((EGridInfo)grid_index), grid_index); | 2466 | LLPanelLogin::addServer(vl->getKnownGridLabel((EGridInfo)grid_index), grid_index); |
2468 | } | 2467 | } |
2468 | LLPanelLogin::setServer(LLViewerLogin::getInstance()->getGridChoice()-1); | ||
2469 | } | 2469 | } |
2470 | 2470 | ||
2471 | // Callback for when login screen is closed. Option 0 = connect, option 1 = quit. | 2471 | // Callback for when login screen is closed. Option 0 = connect, option 1 = quit. |