From a044c71a4f2b8c587152fff0574e116324e2ad3e Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 19 Jun 2019 20:36:58 +0300 Subject: SL-11450 After detaching everything viewer shows wrong slot count Attachments' title not overwriting properly --- indra/newview/llcofwearables.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llcofwearables.cpp b/indra/newview/llcofwearables.cpp index b47e0930a3..1caefd58ab 100644 --- a/indra/newview/llcofwearables.cpp +++ b/indra/newview/llcofwearables.cpp @@ -502,13 +502,14 @@ void LLCOFWearables::populateAttachmentsAndBodypartsLists(const LLInventoryModel { mAttachments->sort(); mAttachments->notify(REARRANGE); //notifying the parent about the list's size change (cause items were added with rearrange=false) - setAttachmentsTitle(); } else { mAttachments->setNoItemsCommentText(LLTrans::getString("no_attachments")); } + setAttachmentsTitle(); + if (mBodyParts->size()) { mBodyParts->sort(); -- cgit v1.2.3