summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallery.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-01 23:53:57 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-08-01 23:53:57 +0300
commit05b5540fe70067180be6bb664752742b31a49eb7 (patch)
tree94bf782d4ba3e8ef78b231b8bd859d5fc58c9ba7 /indra/newview/llinventorygallery.cpp
parent5048b3878c027859dcc9005dff550f0afc38f623 (diff)
SL-20107 Detaching items from COF in gallery view didn't update COF
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r--indra/newview/llinventorygallery.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index 87dba5f100..0801b71e34 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -2376,6 +2376,9 @@ void LLInventoryGalleryItem::setSelected(bool value)
BOOL LLInventoryGalleryItem::handleMouseDown(S32 x, S32 y, MASK mask)
{
+ // call changeItemSelection directly, before setFocus
+ // to avoid autoscroll from LLInventoryGallery::onFocusReceived()
+ mGallery->changeItemSelection(mUUID, false);
setFocus(TRUE);
mGallery->claimEditHandler();