From 6ab212c96b30c272acdc1d772d2c597fb58c8910 Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Fri, 18 Mar 2022 14:14:38 +0200
Subject: SL-16984 Dupplicated FT_SETTINGS shouldn't prevent inventory from
 loading

---
 indra/newview/llinventorymodel.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'indra/newview')

diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 8ddba510b4..37500176ea 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -4302,17 +4302,17 @@ LLPointer<LLInventoryValidationInfo> LLInventoryModel::validate() const
 			{
 				LL_WARNS("Inventory") << "Fatal inventory corruption: system folder type has excess copies under root, type " << ft << " count " << count_under_root << LL_ENDL;
 				validation_info->mDuplicateRequiredSystemFolders.insert(folder_type);
-                if (!is_automatic)
+                if (!is_automatic && folder_type != LLFolderType::FT_SETTINGS)
                 {
                     // It is a fatal problem or can lead to fatal problems for COF,
-                    // outfits and trash and other non-automatic folders.
-                    // Exception: FT_SETTINGS likely only deserves a warning.
+                    // outfits, trash and other non-automatic folders.
                     fatal_errs++;
                 }
                 else
                 {
                     // For automatic folders it's not a fatal issue and shouldn't
                     // break inventory or other functionality further
+                    // Exception: FT_SETTINGS is not automatic, but only deserves a warning.
                     warnings++;
                 }
 			}
-- 
cgit v1.2.3