MAINT-5165 Don't show 'Maketplace listings' folder

Tue, 06 Mar 2018 16:23:29 +0200

author
maxim_productengine<mnikolenko@productengine.com>
date
Tue, 06 Mar 2018 16:23:29 +0200
changeset 55328
1d9ad7f485e6
parent 55327
8c5ee35b0901
child 55329
005206c5c001

MAINT-5165 Don't show 'Maketplace listings' folder

indra/newview/llinventorymodel.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llinventorymodel.cpp	Tue Mar 06 12:59:32 2018 +0000
     1.2 +++ b/indra/newview/llinventorymodel.cpp	Tue Mar 06 16:23:29 2018 +0200
     1.3 @@ -344,13 +344,23 @@
     1.4  
     1.5  bool LLInventoryModel::isCategoryHidden(const LLUUID& id) const
     1.6  {
     1.7 +	bool res = false;
     1.8  	const LLViewerInventoryCategory* category = getCategory(id);
     1.9  	if (category)
    1.10  	{
    1.11  		LLFolderType::EType cat_type = category->getPreferredType();
    1.12 -		return (cat_type == LLFolderType::FT_INBOX || cat_type == LLFolderType::FT_OUTBOX);
    1.13 +		switch (cat_type)
    1.14 +		{
    1.15 +			case LLFolderType::FT_INBOX:
    1.16 +			case LLFolderType::FT_OUTBOX:
    1.17 +			case LLFolderType::FT_MARKETPLACE_LISTINGS:
    1.18 +				res = true;
    1.19 +				break;
    1.20 +			default:
    1.21 +				break;
    1.22 +		}
    1.23  	}
    1.24 -	return false;
    1.25 +	return res;
    1.26  }
    1.27  
    1.28  S32 LLInventoryModel::getItemCount() const

mercurial