summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellogin.cpp
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2020-01-09 03:23:52 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2020-01-09 03:23:52 +0200
commit5d4c7195e8ee9a2bc0ee7ac39dbd4186d0784e7c (patch)
tree37c216b7c04f4567740d0a7f64317e1e8fd84e7e /indra/newview/llpanellogin.cpp
parent1e59ac11e2ca7bac9f91cda71733715a3f960042 (diff)
SL-12533 Correct password drop and fixed 'dirty' condition
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rw-r--r--indra/newview/llpanellogin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp
index 2cc5ea72d6..4edcf4a47d 100644
--- a/indra/newview/llpanellogin.cpp
+++ b/indra/newview/llpanellogin.cpp
@@ -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
{