Skip to content
Snippets Groups Projects
Commit a7adfe13 authored by Richard Nelson's avatar Richard Nelson
Browse files

DEV-38131 "Drop down boxes with text entry ignore the text in the entry field"

reviewed by James
parent 75834b64
No related branches found
No related tags found
No related merge requests found
...@@ -614,17 +614,20 @@ void LLComboBox::showList() ...@@ -614,17 +614,20 @@ void LLComboBox::showList()
void LLComboBox::hideList() void LLComboBox::hideList()
{ {
// assert selection in list if (mList->getVisible())
mList->selectNthItem(mLastSelectedIndex); {
// assert selection in list
mList->selectNthItem(mLastSelectedIndex);
mButton->setToggleState(FALSE); mButton->setToggleState(FALSE);
mList->setVisible(FALSE); mList->setVisible(FALSE);
mList->mouseOverHighlightNthItem(-1); mList->mouseOverHighlightNthItem(-1);
setUseBoundingRect(FALSE); setUseBoundingRect(FALSE);
if( gFocusMgr.getTopCtrl() == this ) if( gFocusMgr.getTopCtrl() == this )
{ {
gFocusMgr.setTopCtrl(NULL); gFocusMgr.setTopCtrl(NULL);
}
} }
} }
......
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