summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorSteven Bennetts <steve@lindenlab.com>2008-08-13 19:37:05 +0000
committerSteven Bennetts <steve@lindenlab.com>2008-08-13 19:37:05 +0000
commitb9b4a4d9347053a3834ca2928063136948f09d1d (patch)
treec2affaf017c2967989ff0b4a2b125d348736a04a /indra/newview/llpanellogin.cpp
parent0a3b9e8e141a6f38ecbdf6020312e7a89b153bc4 (diff)
QAR-782 Merge featurettes batch #2
merge featurettes-6-merge-2 -> release dataserver-is-deprecated
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r--indra/newview/llpanellogin.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index b73dcfc40b..d01721984a 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -433,6 +433,9 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect,
LLTextBox* forgot_password_text = getChild<LLTextBox>("forgot_password_text");
forgot_password_text->setClickedCallback(onClickForgotPassword);
+
+ LLTextBox* create_new_account_text = getChild<LLTextBox>("create_new_account_text");
+ create_new_account_text->setClickedCallback(onClickNewAccount);
#endif
// get the web browser control
@@ -1063,9 +1066,15 @@ void LLPanelLogin::onClickConnect(void *)
}
else
{
- // empty first or last name
- // same as clicking new account
- onClickNewAccount(NULL);
+ if (gHideLinks)
+ {
+ gViewerWindow->alertXml("MustHaveAccountToLogInNoLinks");
+ }
+ else
+ {
+ gViewerWindow->alertXml("MustHaveAccountToLogIn",
+ LLPanelLogin::newAccountAlertCallback);
+ }
}
}
}
@@ -1077,7 +1086,7 @@ void LLPanelLogin::newAccountAlertCallback(S32 option, void*)
if (0 == option)
{
llinfos << "Going to account creation URL" << llendl;
- LLWeb::loadURL( CREATE_ACCOUNT_URL );
+ LLWeb::loadURLExternal( CREATE_ACCOUNT_URL );
}
else
{
@@ -1089,15 +1098,7 @@ void LLPanelLogin::newAccountAlertCallback(S32 option, void*)
// static
void LLPanelLogin::onClickNewAccount(void*)
{
- if (gHideLinks)
- {
- gViewerWindow->alertXml("MustHaveAccountToLogInNoLinks");
- }
- else
- {
- gViewerWindow->alertXml("MustHaveAccountToLogIn",
- LLPanelLogin::newAccountAlertCallback);
- }
+ LLWeb::loadURLExternal( CREATE_ACCOUNT_URL );
}
@@ -1121,15 +1122,15 @@ void LLPanelLogin::onClickVersion(void*)
LLFloaterAbout::show(NULL);
}
+//static
void LLPanelLogin::onClickForgotPassword(void*)
{
if (sInstance )
{
- LLWeb::loadURL(sInstance->getString( "forgot_password_url" ));
+ LLWeb::loadURLExternal(sInstance->getString( "forgot_password_url" ));
}
}
-
// static
void LLPanelLogin::onPassKey(LLLineEditor* caller, void* user_data)
{