diff options
Diffstat (limited to 'linden/indra/newview/llinventoryactions.cpp')
-rw-r--r-- | linden/indra/newview/llinventoryactions.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventoryactions.cpp b/linden/indra/newview/llinventoryactions.cpp index 6452c87..900a729 100644 --- a/linden/indra/newview/llinventoryactions.cpp +++ b/linden/indra/newview/llinventoryactions.cpp | |||
@@ -491,6 +491,23 @@ class LLSetSortBy : public inventory_listener_t | |||
491 | } | 491 | } |
492 | mPtr->getActivePanel()->setSortOrder( order ); | 492 | mPtr->getActivePanel()->setSortOrder( order ); |
493 | } | 493 | } |
494 | else if (sort_field == "systemfolderstotop") | ||
495 | { | ||
496 | U32 order = mPtr->getActivePanel()->getSortOrder(); | ||
497 | if ( order & LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP ) | ||
498 | { | ||
499 | order &= ~LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP; | ||
500 | |||
501 | mPtr->getControl("Inventory.SystemFoldersToTop")->setValue( FALSE ); | ||
502 | } | ||
503 | else | ||
504 | { | ||
505 | order |= LLInventoryFilter::SO_SYSTEM_FOLDERS_TO_TOP; | ||
506 | |||
507 | mPtr->getControl("Inventory.SystemFoldersToTop")->setValue( TRUE ); | ||
508 | } | ||
509 | mPtr->getActivePanel()->setSortOrder( order ); | ||
510 | } | ||
494 | 511 | ||
495 | return true; | 512 | return true; |
496 | } | 513 | } |