summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorypanel.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 22:22:45 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2024-05-17 22:22:45 +0300
commit25b19eb6b8b8482d5f6cff0cae8665a0f7518eb1 (patch)
tree3a352e745f83e52a17400247b5e5cccb20c6ca93 /indra/newview/llinventorypanel.cpp
parent4c676acedd3c99234e599b77bcfdec6ad3274efb (diff)
viewer#1424 Proper links support for favorites
Diffstat (limited to 'indra/newview/llinventorypanel.cpp')
-rw-r--r--indra/newview/llinventorypanel.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llinventorypanel.cpp b/indra/newview/llinventorypanel.cpp
index 4682f2085b..8450c344a7 100644
--- a/indra/newview/llinventorypanel.cpp
+++ b/indra/newview/llinventorypanel.cpp
@@ -626,10 +626,11 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve
{
if (view_item)
{
+ view_item->refresh();
LLFolderViewFolder* parent = view_item->getParentFolder();
if (parent)
{
- parent->updateHasFavorites(view_item->isFavorite());
+ parent->updateHasFavorites(get_is_favorite(model_item));
}
}
}
@@ -662,7 +663,8 @@ void LLInventoryPanel::itemChanged(const LLUUID& item_id, U32 mask, const LLInve
setSelection(item_id, FALSE);
}
updateFolderLabel(model_item->getParentUUID());
- if (model_item->getIsFavorite())
+
+ if (get_is_favorite(model_item))
{
LLFolderViewFolder* new_parent = (LLFolderViewFolder*)getItemByID(model_item->getParentUUID());
if (new_parent)
@@ -2424,6 +2426,7 @@ void LLInventoryFavoritesItemsPanel::itemChanged(const LLUUID& id, U32 mask, con
LLInventoryObserver::ADD |
LLInventoryObserver::REMOVE))
{
+ // specifically exlude links and not get_is_favorite(model_item)
if (model_item && model_item->getIsFavorite())
{
LLFolderViewItem* view_item = getItemByID(id);