summaryrefslogtreecommitdiff
path: root/indra/newview/llimconversation.cpp
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2012-10-25 18:16:56 -0700
committerMerov Linden <merov@lindenlab.com>2012-10-25 18:16:56 -0700
commitd49de3a66a5476f4541f15dc61c68e0e509c4c70 (patch)
tree7b1245ccbc660130e7973999af04acbb1d19349c /indra/newview/llimconversation.cpp
parentb5d76c2b55666083279580f383e5a7b139517504 (diff)
CHUI-441 : WIP : Fix crashes when spawning torn off floaters, added widgets creation in the torn off floater for participants.
Diffstat (limited to 'indra/newview/llimconversation.cpp')
-rw-r--r--indra/newview/llimconversation.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llimconversation.cpp b/indra/newview/llimconversation.cpp
index 1e268bcaf9..532f1be6a8 100644
--- a/indra/newview/llimconversation.cpp
+++ b/indra/newview/llimconversation.cpp
@@ -351,6 +351,17 @@ void LLIMConversation::buildParticipantList()
//updateHeaderAndToolbar();
}
+void LLIMConversation::addConversationViewParticipant(LLConversationItem* participant_model)
+{
+ // Check if the model already has an associated view
+ llinfos << "Merov debug : addConversationViewParticipant(). We need to check the existence!!!" << llendl;
+
+ // Create the participant view and attach it to the root
+ LLConversationViewParticipant* participant_view = createConversationViewParticipant(participant_model);
+ participant_view->addToFolder(mConversationsRoot); // ! Not sure about that. TBC...
+ participant_view->setVisible(TRUE);
+}
+
// Copied from LLIMFloaterContainer::createConversationViewParticipant(). Refactor opportunity!
LLConversationViewParticipant* LLIMConversation::createConversationViewParticipant(LLConversationItem* item)
{