Skip to content
Snippets Groups Projects
Commit acd7d31f authored by Jiao Li's avatar Jiao Li
Browse files

EXT-735 Login failed if start location wasn't defined by user -- reviewed by oreh

parent 09bf3c1f
Branches
Tags
No related merge requests found
...@@ -837,14 +837,22 @@ void LLPanelLogin::onClickConnect(void *) ...@@ -837,14 +837,22 @@ void LLPanelLogin::onClickConnect(void *)
std::string first = sInstance->childGetText("first_name_edit"); std::string first = sInstance->childGetText("first_name_edit");
std::string last = sInstance->childGetText("last_name_edit"); std::string last = sInstance->childGetText("last_name_edit");
if (!first.empty() && !last.empty()) LLComboBox* combo = sInstance->getChild<LLComboBox>("start_location_combo");
std::string combo_text = combo->getSimple();
if (first.empty() || last.empty())
{ {
// has both first and last name typed LLNotifications::instance().add("MustHaveAccountToLogIn");
sInstance->mCallback(0, sInstance->mCallbackData); }
else if( (combo_text=="<Type region name>" || combo_text =="")
&& LLURLSimString::sInstance.mSimString =="")
{
LLNotifications::instance().add("StartRegionEmpty");
} }
else else
{ {
LLNotifications::instance().add("MustHaveAccountToLogIn"); // has both first and last name typed
sInstance->mCallback(0, sInstance->mCallbackData);
} }
} }
} }
......
...@@ -994,6 +994,17 @@ The object may be out of range or may have been deleted. ...@@ -994,6 +994,17 @@ The object may be out of range or may have been deleted.
There was a problem saving a compiled script due to the following reason: [REASON]. Please try re-saving the script later. There was a problem saving a compiled script due to the following reason: [REASON]. Please try re-saving the script later.
</notification> </notification>
<notification
icon="alertmodal.tga"
name="StartRegionEmpty"
type="alertmodal">
Oops, Your Start Region is not defined.
Please type the Region name in Start Location box or choose My Last Location or My Home as your Start Location.
<usetemplate
name="okbutton"
yestext="OK"/>
</notification>
<notification <notification
icon="alertmodal.tga" icon="alertmodal.tga"
name="CouldNotStartStopScript" name="CouldNotStartStopScript"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment