summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/llinventorygallery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index 271cc3e037..75df5c1043 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -1261,7 +1261,7 @@ void LLInventoryGallery::onFocusReceived()
focus_item->setSelected(true);
focus_item->setFocus(TRUE);
}
- else if (mIndexToItemMap.size() > 0)
+ else if (mIndexToItemMap.size() > 0 && mItemToSelect.isNull())
{
// choose any items from visible rect
S32 vert_offset = mScrollPanel->getDocPosVertical();