diff options
author | andreykproductengine <andreykproductengine@lindenlab.com> | 2020-01-16 15:23:38 +0200 |
---|---|---|
committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2020-01-16 15:23:38 +0200 |
commit | c83536f6c3950c21836f276f93d8538e67eac9b0 (patch) | |
tree | 513427a1de32d42e217886996fa5755f988735b9 /indra | |
parent | 3233dfe833050cbd0a7d17f4f87a46bcffc1da52 (diff) |
SL-12556 Fixed another case of login button being active
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanellogin.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 2b84d87e53..cfa935cd01 100644 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -1232,6 +1232,8 @@ void LLPanelLogin::populateUserList(LLPointer<LLCredential> credential) LLComboBox* user_combo = getChild<LLComboBox>("username_combo"); user_combo->removeall(); user_combo->clear(); + mUsernameLength = 0; + mPasswordLength = 0; if (gSecAPIHandler->hasCredentialMap("login_list", LLGridManager::getInstance()->getGrid())) { @@ -1255,8 +1257,6 @@ 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()); - mUsernameLength = 0; - mPasswordLength = 0; updateLoginButtons(); } else @@ -1274,6 +1274,14 @@ void LLPanelLogin::populateUserList(LLPointer<LLCredential> credential) user_combo->add(LLPanelLogin::getUserName(credential), credential->userID(), ADD_BOTTOM, TRUE); setFields(credential); } + else + { + updateLoginButtons(); + } + } + else + { + updateLoginButtons(); } } } |