diff options
Diffstat (limited to 'indra/newview/llinventorygallery.cpp')
-rw-r--r-- | indra/newview/llinventorygallery.cpp | 13 |
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 //----------------------------- |