aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llpanellogin.cpp')
-rw-r--r--linden/indra/newview/llpanellogin.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp
index 49b9761..df5601a 100644
--- a/linden/indra/newview/llpanellogin.cpp
+++ b/linden/indra/newview/llpanellogin.cpp
@@ -462,7 +462,7 @@ BOOL LLPanelLogin::handleKeyHere(KEY key, MASK mask)
462 if ( KEY_F1 == key ) 462 if ( KEY_F1 == key )
463 { 463 {
464 llinfos << "Spawning HTML help window" << llendl; 464 llinfos << "Spawning HTML help window" << llendl;
465 LLFloaterMediaBrowser::helpF1(); 465 gViewerHtmlHelp.show();
466 return TRUE; 466 return TRUE;
467 } 467 }
468 468
@@ -1017,8 +1017,7 @@ bool LLPanelLogin::newAccountAlertCallback(const LLSD& notification, const LLSD&
1017 S32 option = LLNotification::getSelectedOption(notification, response); 1017 S32 option = LLNotification::getSelectedOption(notification, response);
1018 if (0 == option) 1018 if (0 == option)
1019 { 1019 {
1020 llinfos << "Going to account creation URL" << llendl; 1020 onClickNewAccount(0);
1021 LLWeb::loadURLExternal( CREATE_ACCOUNT_URL );
1022 } 1021 }
1023 else 1022 else
1024 { 1023 {
@@ -1031,7 +1030,14 @@ bool LLPanelLogin::newAccountAlertCallback(const LLSD& notification, const LLSD&
1031// static 1030// static
1032void LLPanelLogin::onClickNewAccount(void*) 1031void LLPanelLogin::onClickNewAccount(void*)
1033{ 1032{
1034 LLWeb::loadURLExternal( CREATE_ACCOUNT_URL ); 1033 const std::string &url = gHippoGridManager->getConnectedGrid()->getRegisterUrl();
1034 if (!url.empty()) {
1035 llinfos << "Going to account creation URL." << llendl;
1036 LLWeb::loadURLExternal(url);
1037 } else {
1038 llinfos << "Account creation URL is empty." << llendl;
1039 sInstance->setFocus(TRUE);
1040 }
1035} 1041}
1036 1042
1037 1043
@@ -1062,7 +1068,12 @@ void LLPanelLogin::onClickForgotPassword(void*)
1062{ 1068{
1063 if (sInstance ) 1069 if (sInstance )
1064 { 1070 {
1065 LLWeb::loadURLExternal(sInstance->getString( "forgot_password_url" )); 1071 const std::string &url = gHippoGridManager->getConnectedGrid()->getPasswordUrl();
1072 if (!url.empty()) {
1073 LLWeb::loadURLExternal(url);
1074 } else {
1075 llwarns << "Link for 'forgotton password' not set." << llendl;
1076 }
1066 } 1077 }
1067} 1078}
1068 1079