CHUI-101 WIP Make LLFolderView general purpose

all inventory names are correctly initialized now
meow-7.2.2
Richard Linden 2012-06-25 13:04:09 -07:00
parent 74092930af
commit 5b6db72c5b
1 changed files with 7 additions and 4 deletions

View File

@ -1844,14 +1844,17 @@ void LLFolderBridge::buildDisplayName() const
//"Accessories" inventory category has folder type FT_NONE. So, this folder
//can not be detected as protected with LLFolderType::lookupIsProtectedType
mDisplayName.assign(getName());
if (accessories || LLFolderType::lookupIsProtectedType(preferred_type))
{
LLTrans::findString(mDisplayName, std::string("InvFolder ") + getName(), LLSD());
}
else
{
mDisplayName.assign(getName());
}
//if (mDisplayName.empty())
//{
// S32 foo;
// foo = 0;
//}
}