From 7f7a9b7cbae153b00b8a77d3d662257bf6152912 Mon Sep 17 00:00:00 2001
From: Seth ProductEngine <slitovchuk@productengine.com>
Date: Fri, 13 Jul 2012 20:06:35 +0300
Subject: [PATCH] CHUI-205 FIXED conversations selection in the conversations
 list. Each conversation item is added to the folder view which lists all
 conversations.

---
 indra/newview/llimfloatercontainer.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/indra/newview/llimfloatercontainer.cpp b/indra/newview/llimfloatercontainer.cpp
index bf0fc2f6c0d..4f626cb5d2a 100644
--- a/indra/newview/llimfloatercontainer.cpp
+++ b/indra/newview/llimfloatercontainer.cpp
@@ -438,6 +438,9 @@ void LLIMFloaterContainer::addConversationListItem(std::string name, const LLUUI
 	LLFolderViewItem* widget = createConversationItemWidget(item);
 	mConversationsWidgets[floaterp] = widget;
 
+	// Add a new conversation widget to the root folder of a folder view.
+	mConversationsRoot->addItem(widget);
+
 	// Add it to the UI
 	widget->setVisible(TRUE);
 	mConversationsListPanel->addChild(widget);
@@ -460,7 +463,7 @@ void LLIMFloaterContainer::removeConversationListItem(LLFloater* floaterp, bool
 	if (widget_it != mConversationsWidgets.end())
 	{
 		LLFolderViewItem* widget = widget_it->second;
-		delete widget;
+		widget->destroyView();
 	}
 	
 	// Suppress the conversation items and widgets from their respective maps
-- 
GitLab