SL-12533 Correct password drop and fixed 'dirty' condition

meow-7.2.2
andreykproductengine 2020-01-09 03:23:52 +02:00
parent 1e59ac11e2
commit 5d4c7195e8
1 changed files with 2 additions and 1 deletions

View File

@ -763,7 +763,7 @@ BOOL LLPanelLogin::areCredentialFieldsDirty()
else
{
LLComboBox* combo = sInstance->getChild<LLComboBox>("username_combo");
if (combo && combo->getCurrentIndex() == -1 && combo->isDirty())
if (combo && combo->getCurrentIndex() == -1 && !combo->getValue().asString().empty())
{
return true;
}
@ -1249,6 +1249,7 @@ void LLPanelLogin::populateUserList(LLPointer<LLCredential> credential)
{
// selection failed, just deselect whatever might be selected
user_combo->setValue(std::string());
getChild<LLUICtrl>("password_edit")->setValue(std::string());
}
else
{