diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-05-27 13:44:48 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-05-27 13:44:48 +0300 |
commit | ce57c2d8c1bd3c6da6c05b4c76aa7bf021808bfa (patch) | |
tree | ac3fff693835112a908e073cc19c21fccfb0dce7 /indra | |
parent | 293f5184811abdf5a9a41db490a58389dc3523fb (diff) |
SL-13292 Uncheck Remember Password option when Remember Me is unchecked
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanellogin.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 65d7aac7d6..fdfd63cd36 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -560,7 +560,7 @@ void LLPanelLogin::populateFields(LLPointer<LLCredential> credential, bool remem { sInstance->getChild<LLUICtrl>("remember_name")->setValue(remember_user); LLUICtrl* remember_password = sInstance->getChild<LLUICtrl>("remember_password"); - remember_password->setValue(remember_psswrd); + remember_password->setValue(remember_user && remember_psswrd); remember_password->setEnabled(remember_user); sInstance->populateUserList(credential); } @@ -1142,7 +1142,11 @@ void LLPanelLogin::onRememberUserCheck(void*) remember_name->setValue(true); LLNotificationsUtil::add("LoginCantRemoveUsername"); } - remember_psswrd->setEnabled(remember); + if (!remember) + { + remember_psswrd->setValue(false); + } + remember_psswrd->setEnabled(remember); } } |