diff options
| author | Cho <cho@lindenlab.com> | 2013-02-02 01:36:59 +0000 |
|---|---|---|
| committer | Cho <cho@lindenlab.com> | 2013-02-02 01:36:59 +0000 |
| commit | 2fe6fce0183904936a3af7d9ce707b60b34895d1 (patch) | |
| tree | 4bc619cfb2b51792fb08555f93e27477c89ddb8f /indra/newview/llfloaterimsession.cpp | |
| parent | 142833f93f54cfe5127785e58a44cfec855178dc (diff) | |
| parent | 1192abd7eb0dff000be69f21d4d7cc7e0ecef561 (diff) | |
merging
Diffstat (limited to 'indra/newview/llfloaterimsession.cpp')
| -rw-r--r-- | indra/newview/llfloaterimsession.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/indra/newview/llfloaterimsession.cpp b/indra/newview/llfloaterimsession.cpp index f754853b82..50b2ed8c51 100644 --- a/indra/newview/llfloaterimsession.cpp +++ b/indra/newview/llfloaterimsession.cpp @@ -1044,6 +1044,19 @@ void LLFloaterIMSession::processSessionUpdate(const LLSD& session_update) } // virtual +void LLFloaterIMSession::draw() +{ + // add people who were added via dropPerson() + if (!mPendingParticipants.empty()) + { + addSessionParticipants(mPendingParticipants); + mPendingParticipants.clear(); + } + + LLFloaterIMSessionTab::draw(); +} + +// virtual BOOL LLFloaterIMSession::handleDragAndDrop(S32 x, S32 y, MASK mask, BOOL drop, EDragAndDropType cargo_type, void* cargo_data, @@ -1081,7 +1094,9 @@ bool LLFloaterIMSession::dropPerson(LLUUID* person_id, bool drop) res = canAddSelectedToChat(ids); if(res && drop) { - addSessionParticipants(ids); + // these people will be added during the next draw() call + // (so they can be added all at once) + mPendingParticipants.push_back(*person_id); } } |
