summaryrefslogtreecommitdiff
path: root/indra/newview/llfolderviewmodelinventory.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-04-02 22:40:56 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-04-02 23:36:14 +0300
commit820ac72f8c4a07bc4310b9daac6966f2f2f2ee98 (patch)
tree264ba32e02eed86686957ef994cb91affb0260da /indra/newview/llfolderviewmodelinventory.h
parent7d31436009b5578f75c862f970437bf583a97017 (diff)
SL-13182 Fix excessive resorting
Diffstat (limited to 'indra/newview/llfolderviewmodelinventory.h')
-rw-r--r--indra/newview/llfolderviewmodelinventory.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llfolderviewmodelinventory.h b/indra/newview/llfolderviewmodelinventory.h
index 06a908cccc..8ee3f75002 100644
--- a/indra/newview/llfolderviewmodelinventory.h
+++ b/indra/newview/llfolderviewmodelinventory.h
@@ -82,6 +82,7 @@ public:
}
bool isByDate() const { return mByDate; }
+ bool isFoldersByName() const { return (!mByDate || mFoldersByName) && !mFoldersByWeight; }
U32 getSortOrder() const { return mSortOrder; }
void toParams(Params& p) { p.order(mSortOrder);}
void fromParams(Params& p)