aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-01 17:39:58 -0600
committerJacek Antonelli2008-12-01 17:40:06 -0600
commit7abecb48babe6a6f09bf6692ba55076546cfced9 (patch)
tree8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/newview/llpanellogin.cpp
parentSecond Life viewer sources 1.21.6 (diff)
downloadmeta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2
meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz
Second Life viewer sources 1.22.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanellogin.cpp39
1 files changed, 28 insertions, 11 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index ffee058..c1c8949 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -63,7 +63,6 @@
63#include "llviewernetwork.h" 63#include "llviewernetwork.h"
64#include "llviewerwindow.h" // to link into child list 64#include "llviewerwindow.h" // to link into child list
65#include "llnotify.h" 65#include "llnotify.h"
66#include "llappviewer.h" // for gHideLinks
67#include "llurlsimstring.h" 66#include "llurlsimstring.h"
68#include "lluictrlfactory.h" 67#include "lluictrlfactory.h"
69#include "llhttpclient.h" 68#include "llhttpclient.h"
@@ -202,6 +201,26 @@ void LLLoginHandler::parse(const LLSD& queryMap)
202 { 201 {
203 grid_choice = GRID_INFO_ARUNA; 202 grid_choice = GRID_INFO_ARUNA;
204 } 203 }
204 else if (queryMap["grid"].asString() == "bharati")
205 {
206 grid_choice = GRID_INFO_BHARATI;
207 }
208 else if (queryMap["grid"].asString() == "chandra")
209 {
210 grid_choice = GRID_INFO_CHANDRA;
211 }
212 else if (queryMap["grid"].asString() == "danu")
213 {
214 grid_choice = GRID_INFO_DANU;
215 }
216 else if (queryMap["grid"].asString() == "parvati")
217 {
218 grid_choice = GRID_INFO_PARVATI;
219 }
220 else if (queryMap["grid"].asString() == "skanda")
221 {
222 grid_choice = GRID_INFO_SKANDA;
223 }
205 224
206 if(grid_choice != GRID_INFO_NONE) 225 if(grid_choice != GRID_INFO_NONE)
207 { 226 {
@@ -321,6 +340,11 @@ namespace {
321 boost::intrusive_ptr< LLIamHereLogin > gResponsePtr = 0; 340 boost::intrusive_ptr< LLIamHereLogin > gResponsePtr = 0;
322}; 341};
323 342
343void set_start_location(LLUICtrl* ctrl, void* data)
344{
345 LLURLSimString::setString(ctrl->getValue().asString());
346}
347
324//--------------------------------------------------------------------------- 348//---------------------------------------------------------------------------
325// Public methods 349// Public methods
326//--------------------------------------------------------------------------- 350//---------------------------------------------------------------------------
@@ -407,7 +431,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
407 combo->setCurrentByIndex( 0 ); 431 combo->setCurrentByIndex( 0 );
408 } 432 }
409 433
410 combo->setCommitCallback( &LLPanelGeneral::set_start_location ); 434 combo->setCommitCallback( &set_start_location );
411 435
412 LLComboBox* server_choice_combo = sInstance->getChild<LLComboBox>("server_combo"); 436 LLComboBox* server_choice_combo = sInstance->getChild<LLComboBox>("server_combo");
413 server_choice_combo->setCommitCallback(onSelectServer); 437 server_choice_combo->setCommitCallback(onSelectServer);
@@ -1066,15 +1090,8 @@ void LLPanelLogin::onClickConnect(void *)
1066 } 1090 }
1067 else 1091 else
1068 { 1092 {
1069 if (gHideLinks) 1093 gViewerWindow->alertXml("MustHaveAccountToLogIn",
1070 { 1094 LLPanelLogin::newAccountAlertCallback);
1071 gViewerWindow->alertXml("MustHaveAccountToLogInNoLinks");
1072 }
1073 else
1074 {
1075 gViewerWindow->alertXml("MustHaveAccountToLogIn",
1076 LLPanelLogin::newAccountAlertCallback);
1077 }
1078 } 1095 }
1079 } 1096 }
1080} 1097}