From 14c91b939ef151e662d47892407c622c39f01d3a Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Mon, 2 Nov 2015 18:58:17 +0200 Subject: MAINT-5620 double clicking on Graphics Preset title triggers favorite --- indra/newview/llpanelpresetspulldown.cpp | 14 ++++++++++++++ indra/newview/llpanelpresetspulldown.h | 2 ++ 2 files changed, 16 insertions(+) (limited to 'indra/newview') diff --git a/indra/newview/llpanelpresetspulldown.cpp b/indra/newview/llpanelpresetspulldown.cpp index ed67c34bd6..175f281ca4 100644 --- a/indra/newview/llpanelpresetspulldown.cpp +++ b/indra/newview/llpanelpresetspulldown.cpp @@ -121,6 +121,20 @@ BOOL LLPanelPresetsPulldown::handleMouseDown(S32 x, S32 y, MASK mask) return TRUE; } +/*virtual*/ +BOOL LLPanelPresetsPulldown::handleRightMouseDown(S32 x, S32 y, MASK mask) +{ + LLPanel::handleRightMouseDown(x, y, mask); + return TRUE; +} + +/*virtual*/ +BOOL LLPanelPresetsPulldown::handleDoubleClick(S32 x, S32 y, MASK mask) +{ + LLPanel::handleDoubleClick(x, y, mask); + return TRUE; +} + /*virtual*/ void LLPanelPresetsPulldown::onMouseLeave(S32 x, S32 y, MASK mask) { diff --git a/indra/newview/llpanelpresetspulldown.h b/indra/newview/llpanelpresetspulldown.h index e1e2c26a86..322bf5a58f 100644 --- a/indra/newview/llpanelpresetspulldown.h +++ b/indra/newview/llpanelpresetspulldown.h @@ -41,6 +41,8 @@ class LLPanelPresetsPulldown : public LLPanel /*virtual*/ void onMouseEnter(S32 x, S32 y, MASK mask); /*virtual*/ void onMouseLeave(S32 x, S32 y, MASK mask); /*virtual*/ BOOL handleMouseDown(S32 x, S32 y, MASK mask); + /*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); + /*virtual*/ BOOL handleDoubleClick(S32 x, S32 y, MASK mask); /*virtual*/ void onTopLost(); /*virtual*/ void onVisibilityChange ( BOOL new_visibility ); /*virtual*/ BOOL postBuild(); -- cgit v1.2.3