aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventoryview.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llinventoryview.cpp28
1 files changed, 27 insertions, 1 deletions
diff --git a/linden/indra/newview/llinventoryview.cpp b/linden/indra/newview/llinventoryview.cpp
index 0f1eb2b..a8d5045 100644
--- a/linden/indra/newview/llinventoryview.cpp
+++ b/linden/indra/newview/llinventoryview.cpp
@@ -521,6 +521,15 @@ void LLInventoryView::init(LLInventoryModel* inventory)
521 addBoolControl("Inventory.FoldersAlwaysByName", sort_folders_by_name ); 521 addBoolControl("Inventory.FoldersAlwaysByName", sort_folders_by_name );
522 addBoolControl("Inventory.SystemFoldersToTop", sort_system_folders_to_top ); 522 addBoolControl("Inventory.SystemFoldersToTop", sort_system_folders_to_top );
523 523
524 //Search Controls
525 U32 search_type = gSavedSettings.getU32("InventorySearchType");
526 BOOL search_by_name = (search_type == 0);
527
528 addBoolControl("Inventory.SearchByName", search_by_name);
529 addBoolControl("Inventory.SearchByCreator", !search_by_name);
530
531 addBoolControl("Inventory.SearchByAll", !search_by_name);
532
524 mSavedFolderState = new LLSaveFolderState(); 533 mSavedFolderState = new LLSaveFolderState();
525 mSavedFolderState->setApply(FALSE); 534 mSavedFolderState->setApply(FALSE);
526 535
@@ -765,7 +774,17 @@ void LLInventoryView::setVisible( BOOL visible )
765// Destroy all but the last floater, which is made invisible. 774// Destroy all but the last floater, which is made invisible.
766void LLInventoryView::onClose(bool app_quitting) 775void LLInventoryView::onClose(bool app_quitting)
767{ 776{
768 S32 count = sActiveViews.count(); 777// S32 count = sActiveViews.count();
778// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g)
779 // See LLInventoryView::closeAll() on why we're doing it this way
780 S32 count = 0;
781 for (S32 idx = 0, cnt = sActiveViews.count(); idx < cnt; idx++)
782 {
783 if (!sActiveViews.get(idx)->isDead())
784 count++;
785 }
786// [/RLVa:KB]
787
769 if (count > 1) 788 if (count > 1)
770 { 789 {
771 destroy(); 790 destroy();
@@ -843,6 +862,13 @@ LLInventoryView* LLInventoryView::showAgentInventory(BOOL take_keyboard_focus)
843 return NULL; 862 return NULL;
844 } 863 }
845 864
865// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g)
866 if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWINV))
867 {
868 return NULL;
869 }
870// [/RLVa:KB]
871
846 LLInventoryView* iv = LLInventoryView::getActiveInventory(); 872 LLInventoryView* iv = LLInventoryView::getActiveInventory();
847#if 0 && !LL_RELEASE_FOR_DOWNLOAD 873#if 0 && !LL_RELEASE_FOR_DOWNLOAD
848 if (sActiveViews.count() == 1) 874 if (sActiveViews.count() == 1)