diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-05-22 20:47:17 +0300 |
---|---|---|
committer | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2023-05-22 20:47:17 +0300 |
commit | f83ed218327213ae809535f4739d9f9eff6374a3 (patch) | |
tree | bcc6af0a97fe82e82ea99e822b48b5d2abe58dbe /indra | |
parent | d53c8a7d65cabaab303c21db7bb6d2ce4370c331 (diff) |
SL-19752 don't try to scroll after opening the new folder in single-folder view to avoid crash
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/llfolderview.cpp | 3 |
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() |