diff options
author | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:56 -0500 |
commit | c07901e29ed545bbb02e3bddf148fe1104b94e9f (patch) | |
tree | f1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/newview/llinventoryactions.cpp | |
parent | Second Life viewer sources 1.15.0.2 (diff) | |
download | meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2 meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz |
Second Life viewer sources 1.15.1.3
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 | } |