summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaximB ProductEngine <mberezhnoy@productengine.com>2012-11-26 12:24:11 +0200
committerMaximB ProductEngine <mberezhnoy@productengine.com>2012-11-26 12:24:11 +0200
commita243a0475e9bc87ec4acf31700443461ebc58a54 (patch)
treedeb0e5b312e2dc9bf60dc1da600fc9ea4c0774b1
parent890965faf5baa5f6f832e086991d59bb8d33b7bc (diff)
CHUI-542 (Torn off message in conversation panel is not cleared when torn off conversation is closed)
-rw-r--r--indra/newview/llfloaterimcontainer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index 304fb78260..d4b552deae 100644
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -1353,10 +1353,12 @@ bool LLFloaterIMContainer::removeConversationListItem(const LLUUID& uuid, bool c
setFocus(TRUE);
if(new_selection != NULL)
{
+ if (mConversationsWidgets.size() == 1)
+ new_selection = new_selection->getParentFolder();
LLConversationItem* vmi = dynamic_cast<LLConversationItem*>(new_selection->getViewModelItem());
if(vmi != NULL)
{
- selectConversation(vmi->getUUID());
+ selectConversationPair(vmi->getUUID(), true);
}
}
}