summaryrefslogtreecommitdiff
path: root/indra/llui/llcombobox.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2010-12-07 16:05:12 +0200
committerVadim ProductEngine <vsavchuk@productengine.com>2010-12-07 16:05:12 +0200
commit91480065ca8bc1f023e41f5afbbc3c12b8463c3b (patch)
treee2a34abc7a137bf06c833718470ed0bc6068baa4 /indra/llui/llcombobox.cpp
parentf59033bfd8f78d51b10bb1d424994f786276ff95 (diff)
STORM-710 FIXED Don't show search history dropdown if the history is empty.
Diffstat (limited to 'indra/llui/llcombobox.cpp')
-rw-r--r--indra/llui/llcombobox.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llui/llcombobox.cpp b/indra/llui/llcombobox.cpp
index 70014fe4f5..6b06040b8a 100644
--- a/indra/llui/llcombobox.cpp
+++ b/indra/llui/llcombobox.cpp
@@ -769,7 +769,8 @@ BOOL LLComboBox::handleKeyHere(KEY key, MASK mask)
return FALSE;
}
// if selection has changed, pop open list
- else if ((mList->getLastSelectedItem() != last_selected_item) || (key == KEY_DOWN) || (key == KEY_UP))
+ else if (mList->getLastSelectedItem() != last_selected_item ||
+ (key == KEY_DOWN || key == KEY_UP) && !mList->isEmpty())
{
showList();
}