summaryrefslogtreecommitdiff
path: root/indra/newview/llbottomtray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llbottomtray.cpp')
-rw-r--r--indra/newview/llbottomtray.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp
index bfb2d26870..2687feb68b 100644
--- a/indra/newview/llbottomtray.cpp
+++ b/indra/newview/llbottomtray.cpp
@@ -42,6 +42,7 @@
#include "llsplitbutton.h"
#include "llfloatercamera.h"
#include "llimpanel.h"
+#include "llactiveimwindow.h"
LLBottomTray::LLBottomTray(const LLSD&)
: mChicletPanel(NULL),
@@ -75,6 +76,8 @@ LLBottomTray::LLBottomTray(const LLSD&)
// Necessary for focus movement among child controls
setFocusRoot(TRUE);
+
+ LLActiveIMWindow::init(mIMWell);
}
BOOL LLBottomTray::postBuild()
@@ -104,8 +107,10 @@ void LLBottomTray::onChicletClick(LLUICtrl* ctrl)
// Show after comm window so it is frontmost (and hence will not
// auto-hide)
- LLIMFloater::show(chiclet->getSessionId());
- chiclet->setCounter(0);
+
+// this logic has been moved to LLIMChiclet::handleMouseDown
+// LLIMFloater::show(chiclet->getSessionId());
+// chiclet->setCounter(0);
}
}
@@ -130,6 +135,7 @@ void LLBottomTray::sessionAdded(const LLUUID& session_id, const std::string& nam
chiclet->setOtherParticipantId(other_participant_id);
}
}
+ updateImChicletCount();
}
//virtual
@@ -139,6 +145,7 @@ void LLBottomTray::sessionRemoved(const LLUUID& session_id)
{
getChicletPanel()->removeChiclet(session_id);
}
+ updateImChicletCount();
}
//virtual
@@ -177,3 +184,8 @@ void LLBottomTray::setVisible(BOOL visible)
}
}
}
+
+void LLBottomTray::updateImChicletCount() {
+ U32 chicletCount = mChicletPanel->getChicletCount();
+ mIMWell->setCounter(chicletCount);
+}