diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2011-07-06 15:54:07 -0700 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2011-07-06 15:54:07 -0700 |
commit | cca256dcdd785613f29dd00b372ccbf273c7d6a8 (patch) | |
tree | e2358efa15579f88bc5690bd2726ff7b76afe765 /indra/newview/llfolderviewitem.cpp | |
parent | 60f6d809262d97de3b41dcf18a43d783b4b485dc (diff) | |
parent | 6c63a1ae09dca557af67a06c7871bfe287765dd4 (diff) |
merge
Diffstat (limited to 'indra/newview/llfolderviewitem.cpp')
-rw-r--r-- | indra/newview/llfolderviewitem.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/llfolderviewitem.cpp b/indra/newview/llfolderviewitem.cpp index 8f56d81232..87bbe76320 100644 --- a/indra/newview/llfolderviewitem.cpp +++ b/indra/newview/llfolderviewitem.cpp @@ -33,6 +33,7 @@ #include "llviewerfoldertype.h" #include "llinventorybridge.h" // for LLItemBridge in LLInventorySort::operator() #include "llinventoryfilter.h" +#include "llinventoryfunctions.h" #include "llinventorymodelbackgroundfetch.h" #include "llpanel.h" #include "llviewercontrol.h" // gSavedSettings @@ -1902,9 +1903,9 @@ void LLFolderViewFolder::sortBy(U32 order) folders_t::iterator fit = iter++; (*fit)->sortBy(order); } -
- // Don't sort the topmost folders (My Inventory and Library)
- if (mListener->getUUID().notNull())
+ + // Don't sort the topmost folders (My Inventory and Library) + if (mListener->getUUID().notNull()) { mFolders.sort(mSortFunction); mItems.sort(mSortFunction); @@ -2046,7 +2047,7 @@ BOOL LLFolderViewFolder::addItem(LLFolderViewItem* item) requestArrange(); requestSort(); LLFolderViewFolder* parentp = getParentFolder(); - while (parentp && !parentp->getCreationDate()) + while (parentp && parentp->mSortFunction.isByDate()) { // parent folder doesn't have a time stamp yet, so get it from us parentp->requestSort(); @@ -2072,7 +2073,7 @@ BOOL LLFolderViewFolder::addFolder(LLFolderViewFolder* folder) folder->requestArrange(TRUE); requestSort(); LLFolderViewFolder* parentp = getParentFolder(); - while (parentp && !parentp->getCreationDate()) + while (parentp && !parentp->mSortFunction.isByDate()) { // parent folder doesn't have a time stamp yet, so get it from us parentp->requestSort(); |