diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2009-10-06 22:55:01 +0000 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2009-10-06 22:55:01 +0000 |
commit | 8086923d663cbca32a9b147973f912adcbd4a08a (patch) | |
tree | 0cade1f4bb490df1512cbaad82e6ce90138a7ea7 /indra/newview/llinspectavatar.cpp | |
parent | 5c51eb5a345f0e5f95d1cab1bfc214022ebf517e (diff) |
EXT-1283 [Inspectors] Avatar gear menu does not dismiss when selecting another AV
reviewed by James
Diffstat (limited to 'indra/newview/llinspectavatar.cpp')
-rw-r--r-- | indra/newview/llinspectavatar.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llinspectavatar.cpp b/indra/newview/llinspectavatar.cpp index 9b75c15597..fd301505cd 100644 --- a/indra/newview/llinspectavatar.cpp +++ b/indra/newview/llinspectavatar.cpp @@ -51,6 +51,7 @@ #include "llcontrol.h" // LLCachedControl #include "llfloater.h" #include "llfloaterreg.h" +#include "llmenubutton.h" #include "lltooltip.h" // positionViewNearMouse() #include "lluictrl.h" @@ -80,6 +81,9 @@ public: // Because floater is single instance, need to re-parse data on each spawn // (for example, inspector about same avatar but in different position) /*virtual*/ void onOpen(const LLSD& avatar_id); + + // When closing they should close their gear menu + /*virtual*/ void onClose(); // Inspectors close themselves when they lose focus /*virtual*/ void onFocusLost(); @@ -224,6 +228,8 @@ BOOL LLInspectAvatar::postBuild(void) getChild<LLUICtrl>("volume_slider")->setCommitCallback( boost::bind(&LLInspectAvatar::onVolumeChange, this, _2)); + mCloseSignal.connect(boost::bind(&LLInspectAvatar::onClose, this)); + return TRUE; } @@ -288,6 +294,11 @@ void LLInspectAvatar::onOpen(const LLSD& data) updateVolumeSlider(); } +void LLInspectAvatar::onClose() +{ + getChild<LLMenuButton>("gear_btn")->hideMenu(); +} + //virtual void LLInspectAvatar::onFocusLost() { |