Skip to content
Snippets Groups Projects
Commit fed4d339 authored by andreykproductengine's avatar andreykproductengine
Browse files

SL-9699 Fixed processing of placeholder #2

parent e32a2e2f
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ LLFloaterForgetUser::~LLFloaterForgetUser() ...@@ -54,7 +54,7 @@ LLFloaterForgetUser::~LLFloaterForgetUser()
BOOL LLFloaterForgetUser::postBuild() BOOL LLFloaterForgetUser::postBuild()
{ {
// Note, storage works per grid, watever is selected currently in login screen or logged in. // Note, storage works per grid, whatever is selected currently in login screen or logged in.
// Since login screen can change grid, store the value. // Since login screen can change grid, store the value.
mGrid = LLGridManager::getInstance()->getGrid(); mGrid = LLGridManager::getInstance()->getGrid();
...@@ -87,14 +87,18 @@ BOOL LLFloaterForgetUser::postBuild() ...@@ -87,14 +87,18 @@ BOOL LLFloaterForgetUser::postBuild()
LLPointer<LLCredential> cred = gSecAPIHandler->loadCredential(mGrid); LLPointer<LLCredential> cred = gSecAPIHandler->loadCredential(mGrid);
if (cred.notNull()) if (cred.notNull())
{ {
LLScrollListItem::Params item_params; const LLSD &ident = cred->getIdentifier();
item_params.value(cred->userID()); if (ident.isMap() && ident.has("type"))
item_params.columns.add() {
.value(LLPanelLogin::getUserName(cred)) LLScrollListItem::Params item_params;
.column("user") item_params.value(cred->userID());
.font(LLFontGL::getFontSansSerifSmall()); item_params.columns.add()
scroll_list->addRow(item_params, ADD_BOTTOM); .value(LLPanelLogin::getUserName(cred))
scroll_list->selectFirstItem(); .column("user")
.font(LLFontGL::getFontSansSerifSmall());
scroll_list->addRow(item_params, ADD_BOTTOM);
scroll_list->selectFirstItem();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment