summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-03-06 16:23:29 +0200
committermaxim_productengine <mnikolenko@productengine.com>2018-03-06 16:23:29 +0200
commit2093275ad500a64db7bb14ff5a530fe0386890a2 (patch)
tree31a778492d023ebbfa3705436e410bfabc75c0fa
parent4156fb832c02f8ca07620ad9e0b0960320d57806 (diff)
MAINT-5165 Don't show 'Maketplace listings' folder
-rw-r--r--indra/newview/llinventorymodel.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp
index 60f470a938..556af93963 100644
--- a/indra/newview/llinventorymodel.cpp
+++ b/indra/newview/llinventorymodel.cpp
@@ -344,13 +344,23 @@ LLViewerInventoryCategory* LLInventoryModel::getCategory(const LLUUID& id) const
bool LLInventoryModel::isCategoryHidden(const LLUUID& id) const
{
+ bool res = false;
const LLViewerInventoryCategory* category = getCategory(id);
if (category)
{
LLFolderType::EType cat_type = category->getPreferredType();
- return (cat_type == LLFolderType::FT_INBOX || cat_type == LLFolderType::FT_OUTBOX);
+ switch (cat_type)
+ {
+ case LLFolderType::FT_INBOX:
+ case LLFolderType::FT_OUTBOX:
+ case LLFolderType::FT_MARKETPLACE_LISTINGS:
+ res = true;
+ break;
+ default:
+ break;
+ }
}
- return false;
+ return res;
}
S32 LLInventoryModel::getItemCount() const