diff options
author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-10-16 11:38:36 -0700 |
---|---|---|
committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-10-16 11:38:36 -0700 |
commit | ae093e02a126666c9137d9eb6d9aeea0c1c73a8a (patch) | |
tree | ee51b966881444f59f5ab8025630bc6887abd7ac /indra/newview | |
parent | d0f9600f37a87b2d6c7a2c3cfbbc5d793e505872 (diff) |
CHUI-380: Realized that the when clicking the participant/conversation item that the active session wasn't being stored. This caused the right side conversation floater to not change when selecting a participant under a conersation. Resolution: now when clicking on a conversation or participant the active session is stored using setActiveSession().
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llconversationview.cpp | 6 | ||||
-rw-r--r-- | indra/newview/llimfloatercontainer.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index b7ebb70e86..1b450665b3 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -242,6 +242,9 @@ void LLConversationViewSession::selectItem() // Set the focus on the selected floater session_floater->setFocus(TRUE); + // Store the active session + LLIMFloaterContainer::getInstance()->setSelectedSession(item->getUUID()); + LLFolderViewItem::selectItem(); } @@ -441,6 +444,9 @@ void LLConversationViewParticipant::selectItem() { LLIMFloater::show(vmi->getUUID()); } + + // Store the active session + container->setSelectedSession(vmi->getUUID()); } //Focus the current conversation floater (it is already visible so just focus it) else diff --git a/indra/newview/llimfloatercontainer.h b/indra/newview/llimfloatercontainer.h index 6643471d97..579f62c688 100644 --- a/indra/newview/llimfloatercontainer.h +++ b/indra/newview/llimfloatercontainer.h @@ -89,6 +89,7 @@ public: LLConversationViewModel& getRootViewModel() { return mConversationViewModel; } LLUUID getSelectedSession() { return mSelectedSession; } + void setSelectedSession(LLUUID sessionID) { mSelectedSession = sessionID; } private: typedef std::map<LLUUID,LLFloater*> avatarID_panel_map_t; |