From ea045c4fdfeeeaca30813b5f17ba61e249eda5b5 Mon Sep 17 00:00:00 2001
From: andreykproductengine <andreykproductengine@lindenlab.com>
Date: Wed, 19 Jun 2019 20:36:58 +0300
Subject: [PATCH] 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 b47e0930a3c..1caefd58abb 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();
-- 
GitLab