diff options
author | James Cook <james@lindenlab.com> | 2010-01-05 16:29:11 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-01-05 16:29:11 -0800 |
commit | 8a033dba8dd77a6f4c4bdeaa6b897101ccb26472 (patch) | |
tree | 4fb1f9ffba3b224c79d2e9d263a9b010c3d3eadf /indra/newview/llinspectobject.cpp | |
parent | a3adfe54cb9fc953cae0adf2f61c578aa3ca5842 (diff) | |
parent | ab3dbd647e78cff67ce7ffe85bb6fbc5c5461312 (diff) |
Merge
Diffstat (limited to 'indra/newview/llinspectobject.cpp')
-rw-r--r-- | indra/newview/llinspectobject.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/newview/llinspectobject.cpp b/indra/newview/llinspectobject.cpp index cb35a287e9..3be9d5fb0e 100644 --- a/indra/newview/llinspectobject.cpp +++ b/indra/newview/llinspectobject.cpp @@ -82,6 +82,10 @@ public: // Release the selection and do other cleanup /*virtual*/ void onClose(bool app_quitting); + // override the inspector mouse leave so timer is only paused if + // gear menu is not open + /* virtual */ void onMouseLeave(S32 x, S32 y, MASK mask); + private: // Refresh displayed data with information from selection manager void update(); @@ -181,7 +185,6 @@ BOOL LLInspectObject::postBuild(void) return TRUE; } - // Multiple calls to showInstance("inspect_avatar", foo) will provide different // LLSD for foo, which we will catch here. //virtual @@ -562,6 +565,16 @@ void LLInspectObject::updateSecureBrowsing() getChild<LLUICtrl>("secure_browsing")->setVisible(is_secure_browsing); } +// For the object inspector, only unpause the fade timer +// if the gear menu is not open +void LLInspectObject::onMouseLeave(S32 x, S32 y, MASK mask) +{ + LLMenuGL* gear_menu = getChild<LLMenuButton>("gear_btn")->getMenu(); + if ( !(gear_menu && gear_menu->getVisible())) + { + mOpenTimer.unpause(); + } +} void LLInspectObject::onClickBuy() { |