Skip to content
Snippets Groups Projects
Commit 7f7a9b7c authored by Seth ProductEngine's avatar Seth ProductEngine
Browse files

CHUI-205 FIXED conversations selection in the conversations list.

Each conversation item is added to the folder view which lists all conversations.
parent af7de5dd
No related branches found
No related tags found
No related merge requests found
...@@ -438,6 +438,9 @@ void LLIMFloaterContainer::addConversationListItem(std::string name, const LLUUI ...@@ -438,6 +438,9 @@ void LLIMFloaterContainer::addConversationListItem(std::string name, const LLUUI
LLFolderViewItem* widget = createConversationItemWidget(item); LLFolderViewItem* widget = createConversationItemWidget(item);
mConversationsWidgets[floaterp] = widget; mConversationsWidgets[floaterp] = widget;
// Add a new conversation widget to the root folder of a folder view.
mConversationsRoot->addItem(widget);
// Add it to the UI // Add it to the UI
widget->setVisible(TRUE); widget->setVisible(TRUE);
mConversationsListPanel->addChild(widget); mConversationsListPanel->addChild(widget);
...@@ -460,7 +463,7 @@ void LLIMFloaterContainer::removeConversationListItem(LLFloater* floaterp, bool ...@@ -460,7 +463,7 @@ void LLIMFloaterContainer::removeConversationListItem(LLFloater* floaterp, bool
if (widget_it != mConversationsWidgets.end()) if (widget_it != mConversationsWidgets.end())
{ {
LLFolderViewItem* widget = widget_it->second; LLFolderViewItem* widget = widget_it->second;
delete widget; widget->destroyView();
} }
// Suppress the conversation items and widgets from their respective maps // Suppress the conversation items and widgets from their respective maps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment