summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-22 20:47:17 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-22 20:47:17 +0300
commitf83ed218327213ae809535f4739d9f9eff6374a3 (patch)
treebcc6af0a97fe82e82ea99e822b48b5d2abe58dbe
parentd53c8a7d65cabaab303c21db7bb6d2ce4370c331 (diff)
SL-19752 don't try to scroll after opening the new folder in single-folder view to avoid crash
-rw-r--r--indra/llui/llfolderview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/llfolderview.cpp b/indra/llui/llfolderview.cpp
index bf6f2436b1..7831aa92fb 100644
--- a/indra/llui/llfolderview.cpp
+++ b/indra/llui/llfolderview.cpp
@@ -833,9 +833,12 @@ void LLFolderView::autoOpenItem( LLFolderViewFolder* item )
mAutoOpenItems.push(item);
item->setOpen(TRUE);
+ if(!item->isSingleFolderMode())
+ {
LLRect content_rect = (mScrollContainer ? mScrollContainer->getContentWindowRect() : LLRect());
LLRect constraint_rect(0,content_rect.getHeight(), content_rect.getWidth(), 0);
scrollToShowItem(item, constraint_rect);
+ }
}
void LLFolderView::closeAutoOpenedFolders()