diff options
author | Richard Linden <none@none> | 2011-11-14 15:39:41 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2011-11-14 15:39:41 -0800 |
commit | 3c5cdd2948d4c215d70a86a1cab12ae55d3958b9 (patch) | |
tree | de94b58ecd23ef5d8e4304602dc8b55a1cc96bd6 /indra/newview/llinventorybridge.cpp | |
parent | 7766ccb7731a596d6716e9d0def90b3d7da5fcf3 (diff) | |
parent | 98755a62bb414f23919e003101153c20d3ab3f72 (diff) |
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 0c092e9a56..244b001adb 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -195,6 +195,20 @@ BOOL LLInvFVBridge::isLink() const return mIsLink; } +// Is a "System" folder +// System folders are predefined named folders that have a specific preferred type +// e.g. "Textures" which has an FT_TEXTURE preferred type. +// Those are folders used to route incoming items in the current (soon to be obsolete) inventory +// asset routing. +// If a folder uses the same name as a predefined folder but is not of the same preferred type +// or if it has a preferred type but a different name, it will not be considered a system folder. +// *TODO: Test that logic in all languages +bool LLInvFVBridge::isSystemFolder() const +{ + LLFolderType::EType preferred_type = getPreferredType(); + return (preferred_type == LLFolderType::FT_NONE ? false : LLViewerFolderType::lookupTypeFromNewCategoryName(getDisplayName()) == preferred_type); +} + /*virtual*/ /** * @brief Adds this item into clipboard storage |