#2471 The Destinations ComboBox on Login Screen... (quick fix)

master
Alexander Gavriliuk 2024-09-04 16:31:39 +02:00 committed by Guru
parent 2fc8d5ff3c
commit f1e0fc68e7
1 changed files with 5 additions and 1 deletions

View File

@ -521,12 +521,16 @@ bool LLComboBox::setCurrentByIndex(S32 index)
if (item->getEnabled())
{
mList->selectItem(item, -1, true);
LLSD::String label = item->getColumn(0)->getValue().asString();
if (mTextEntry)
{
LLSD::String label = item->getColumn(0)->getValue().asString();
mTextEntry->setText(label);
mTextEntry->setTentative(false);
}
if (!mAllowTextEntry)
{
mButton->setLabel(label);
}
mLastSelectedIndex = index;
return true;
}