From c83536f6c3950c21836f276f93d8538e67eac9b0 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Thu, 16 Jan 2020 15:23:38 +0200 Subject: SL-12556 Fixed another case of login button being active --- indra/newview/llpanellogin.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'indra/newview') 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 credential) LLComboBox* user_combo = getChild("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 credential) // selection failed, just deselect whatever might be selected user_combo->setValue(std::string()); getChild("password_edit")->setValue(std::string()); - mUsernameLength = 0; - mPasswordLength = 0; updateLoginButtons(); } else @@ -1274,6 +1274,14 @@ void LLPanelLogin::populateUserList(LLPointer credential) user_combo->add(LLPanelLogin::getUserName(credential), credential->userID(), ADD_BOTTOM, TRUE); setFields(credential); } + else + { + updateLoginButtons(); + } + } + else + { + updateLoginButtons(); } } } -- cgit v1.2.3