diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-07-27 15:38:03 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-07-27 15:38:03 -0700 |
commit | c1aa0cc4fcd4642a7849b0b56dd1b777536e4f92 (patch) | |
tree | 921c8ee2c4ae29210b9c59cdaef01f9c9388be01 /indra/newview/llimfloater.cpp | |
parent | 0479e8d4ad1212b0028805cd4e39b6fe593b86c7 (diff) | |
parent | ca7b9a944b164602cd8b11bf6512f790743964f3 (diff) |
Pull and merge from ssh://stinson@hg.lindenlab.com/richard/viewer-chui/.
Diffstat (limited to 'indra/newview/llimfloater.cpp')
-rw-r--r-- | indra/newview/llimfloater.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 260957011e..1b08c454b7 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -60,6 +60,8 @@ #include "llnotificationmanager.h" #include "llautoreplace.h" +floater_showed_signal_t LLIMFloater::sIMFloaterShowedSignal; + LLIMFloater::LLIMFloater(const LLUUID& session_id) : LLIMConversation(session_id), mLastMessageIndex(-1), @@ -771,6 +773,11 @@ void LLIMFloater::setVisible(BOOL visible) chiclet->setToggleState(false); } } + + if (visible) + { + sIMFloaterShowedSignal(mSessionID); + } } BOOL LLIMFloater::getVisible() @@ -1340,3 +1347,8 @@ void LLIMFloater::addToHost(const LLUUID& session_id) } } } + +boost::signals2::connection LLIMFloater::setIMFloaterShowedCallback(const floater_showed_signal_t::slot_type& cb) +{ + return LLIMFloater::sIMFloaterShowedSignal.connect(cb); +} |