diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-01-09 21:26:01 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2025-04-11 00:32:15 +0300 |
commit | b1fa03e224f90a2369de27c89597ad0b2a63eb6f (patch) | |
tree | e574043ffee657285a5a104ed58d89a26c9d70e2 /indra | |
parent | eb0ca4198432b66c865b50d4d0d9d75c4704f3e2 (diff) |
#3374 LLFolderViewFolder::updateHasFavorites
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llinventorypanel.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp index bcdd548cb6..5528bfa66b 100644 --- a/indra/newview/llinventorypanel.cpp +++ b/indra/newview/llinventorypanel.cpp @@ -668,7 +668,7 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve if (get_is_favorite(model_item)) { - LLFolderViewFolder* new_parent = (LLFolderViewFolder*)getItemByID(model_item->getParentUUID()); + LLFolderViewFolder* new_parent = getFolderByID(model_item->getParentUUID()); if (new_parent) { new_parent->updateHasFavorites(true); @@ -728,12 +728,18 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve if (view_item->isFavorite()) { + if (old_parent) + { old_parent->updateHasFavorites(false); // favorite was removed + } + if (new_parent) + { new_parent->updateHasFavorites(true); // favorite was added } } } } + } ////////////////////////////// // REMOVE Operation |