diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-04-28 23:35:19 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-04-29 16:56:21 +0300 |
commit | 14f5cd2ba2f984e36710d914805a788c38859124 (patch) | |
tree | 4e9f34c0e047e659bc0ad725ad32cf3a86c9363d | |
parent | e8b1e077e059f41a2b0c5d071077d4b27e01a0d4 (diff) |
#3924 Fix favorites inventory panel being stuck
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index c315ea7702..189937e5c8 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -778,7 +778,7 @@ void LLInventoryPanel::modelChanged(U32 mask) { LL_PROFILE_ZONE_SCOPED; - if (mViewsInitialized != VIEWS_INITIALIZED) return; + if (mViewsInitialized != VIEWS_INITIALIZED) return; // todo: Store changes if building? const LLInventoryModel* model = getModel(); if (!model) return; @@ -941,6 +941,11 @@ void LLInventoryPanel::idle(void* user_data) panel->mViewsInitialized = VIEWS_INITIALIZED; } } + // in case panel is empty or only has 'roots' + else if (panel->mViewsInitialized == VIEWS_BUILDING) + { + panel->mViewsInitialized = VIEWS_INITIALIZED; + } // Take into account the fact that the root folder might be invalidated if (panel->mFolderRoot.get()) |