diff options
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index aeb3b2d..4af0f1b 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -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" |
@@ -259,6 +258,11 @@ namespace { | |||
259 | boost::intrusive_ptr< LLIamHereLogin > gResponsePtr = 0; | 258 | boost::intrusive_ptr< LLIamHereLogin > gResponsePtr = 0; |
260 | }; | 259 | }; |
261 | 260 | ||
261 | void set_start_location(LLUICtrl* ctrl, void* data) | ||
262 | { | ||
263 | LLURLSimString::setString(ctrl->getValue().asString()); | ||
264 | } | ||
265 | |||
262 | //--------------------------------------------------------------------------- | 266 | //--------------------------------------------------------------------------- |
263 | // Public methods | 267 | // Public methods |
264 | //--------------------------------------------------------------------------- | 268 | //--------------------------------------------------------------------------- |
@@ -345,7 +349,7 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, | |||
345 | combo->setCurrentByIndex( 0 ); | 349 | combo->setCurrentByIndex( 0 ); |
346 | } | 350 | } |
347 | 351 | ||
348 | combo->setCommitCallback( &LLPanelGeneral::set_start_location ); | 352 | combo->setCommitCallback( &set_start_location ); |
349 | 353 | ||
350 | LLComboBox* server_choice_combo = sInstance->getChild<LLComboBox>("server_combo"); | 354 | LLComboBox* server_choice_combo = sInstance->getChild<LLComboBox>("server_combo"); |
351 | server_choice_combo->setCommitCallback(onSelectServer); | 355 | server_choice_combo->setCommitCallback(onSelectServer); |
@@ -852,11 +856,7 @@ void LLPanelLogin::loadLoginPage() | |||
852 | } | 856 | } |
853 | 857 | ||
854 | // Language | 858 | // Language |
855 | std::string language(gSavedSettings.getString("Language")); | 859 | std::string language = LLUI::getLanguage(); |
856 | if(language == "default") | ||
857 | { | ||
858 | language = gSavedSettings.getString("SystemLanguage"); | ||
859 | } | ||
860 | oStr << first_query_delimiter<<"lang=" << language; | 860 | oStr << first_query_delimiter<<"lang=" << language; |
861 | 861 | ||
862 | // First Login? | 862 | // First Login? |
@@ -1017,15 +1017,8 @@ void LLPanelLogin::onClickConnect(void *) | |||
1017 | } | 1017 | } |
1018 | else | 1018 | else |
1019 | { | 1019 | { |
1020 | if (gHideLinks) | 1020 | gViewerWindow->alertXml("MustHaveAccountToLogIn", |
1021 | { | 1021 | LLPanelLogin::newAccountAlertCallback); |
1022 | gViewerWindow->alertXml("MustHaveAccountToLogInNoLinks"); | ||
1023 | } | ||
1024 | else | ||
1025 | { | ||
1026 | gViewerWindow->alertXml("MustHaveAccountToLogIn", | ||
1027 | LLPanelLogin::newAccountAlertCallback); | ||
1028 | } | ||
1029 | } | 1022 | } |
1030 | } | 1023 | } |
1031 | } | 1024 | } |