diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-05-31 01:09:57 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-05-31 01:09:57 +0300 |
commit | a6efb920e8e0d9add76ec86c3ed158c691685727 (patch) | |
tree | 8c76ac03fb949e81d5679406295985ea1e25aa1d /indra/newview/llinventorygallery.cpp | |
parent | 1834cc1a8be0b4519d774ca52202677ccaf40933 (diff) |
SL-19795 Creating folders in combination mode does not scroll to new folder #2
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp index c6fee42297..2f9f594790 100644 --- a/indra/newview/llinventorygallery.cpp +++ b/indra/newview/llinventorygallery.cpp @@ -183,7 +183,8 @@ void LLInventoryGallery::setRootFolder(const LLUUID cat_id) void LLInventoryGallery::updateRootFolder() { - if (mIsInitialized) + llassert(mFolderID.notNull()); + if (mIsInitialized && mFolderID.notNull()) { S32 count = mItemsAddedCount; for (S32 i = count - 1; i >= 0; i--) |