summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorygallery.cpp
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-04-12 12:56:56 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-04-12 12:56:56 +0300
commit842bc87941d4574fe1ce34186872e43ecef881c3 (patch)
tree4969c05009fa4cde6d8567f5b2b8c790e2175db4 /indra/newview/llinventorygallery.cpp
parent1f2cbfdbe227bda2f3bd2b17b5ac1b125cb28b2d (diff)
SL-19544 WIP update combination gallery visibility after changing filter
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r--indra/newview/llinventorygallery.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/newview/llinventorygallery.cpp b/indra/newview/llinventorygallery.cpp
index f0a1fc5751..9766a39e3c 100644
--- a/indra/newview/llinventorygallery.cpp
+++ b/indra/newview/llinventorygallery.cpp
@@ -270,9 +270,9 @@ void LLInventoryGallery::draw()
LLPanel::draw();
if (mGalleryCreated)
{
- if(!updateRowsIfNeeded() && mFilter->isModified())
+ if(!updateRowsIfNeeded())
{
- reArrangeRows();
+ handleModifiedFilter();
}
}
}
@@ -1138,6 +1138,15 @@ bool LLInventoryGallery::hasVisibleItems()
{
return mItemsAddedCount > 0;
}
+
+void LLInventoryGallery::handleModifiedFilter()
+{
+ if(mFilter->isModified())
+ {
+ reArrangeRows();
+ }
+}
+
//-----------------------------
// LLInventoryGalleryItem
//-----------------------------