From af2e6e3c9cce43a4b1e5f4f2883abbfbcb6f0765 Mon Sep 17 00:00:00 2001 From: ziree Date: Mon, 7 Nov 2011 14:47:59 +0100 Subject: [PATCH] Fixed double clicking on scrollbars in group lists to NOT open a selected group chat. Fixes FIRE-1853 - Thanks to Dawa Gurbux for the patches to give me the right idea. --- indra/llui/llflatlistview.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indra/llui/llflatlistview.h b/indra/llui/llflatlistview.h index 2c2f1fb3ba..c7c0fe4582 100644 --- a/indra/llui/llflatlistview.h +++ b/indra/llui/llflatlistview.h @@ -123,6 +123,11 @@ public: */ boost::signals2::connection setReturnCallback( const commit_signal_t::slot_type& cb ) { return mOnReturnSignal.connect(cb); } + /** + * Override callback here to make sure double click events are not raised for the scroll bar -Zi + */ + boost::signals2::connection setDoubleClickCallback( const mouse_signal_t::slot_type& cb ) { return mItemsPanel->setDoubleClickCallback(cb); } + /** Overridden LLPanel's reshape, height is ignored, the list sets its height to accommodate all items */ virtual void reshape(S32 width, S32 height, BOOL called_from_parent = TRUE);