Skip to content
Snippets Groups Projects
Commit b2ef7661 authored by Vadim ProductEngine's avatar Vadim ProductEngine
Browse files

EXP-1821 FIXED Don't open group chat for the selected group if user...

EXP-1821 FIXED Don't open group chat for the selected group if user double-clicks on empty space in the group list.
parent 535f1b23
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,22 @@ BOOL LLGroupList::handleRightMouseDown(S32 x, S32 y, MASK mask) ...@@ -123,6 +123,22 @@ BOOL LLGroupList::handleRightMouseDown(S32 x, S32 y, MASK mask)
return handled; return handled;
} }
// virtual
BOOL LLGroupList::handleDoubleClick(S32 x, S32 y, MASK mask)
{
BOOL handled = LLView::handleDoubleClick(x, y, mask);
// Handle double click only for the selected item in the list, skip clicks on empty space.
if (handled)
{
if (mDoubleClickSignal)
{
(*mDoubleClickSignal)(this, x, y, mask);
}
}
return handled;
}
void LLGroupList::setNameFilter(const std::string& filter) void LLGroupList::setNameFilter(const std::string& filter)
{ {
std::string filter_upper = filter; std::string filter_upper = filter;
......
...@@ -51,6 +51,7 @@ class LLGroupList: public LLFlatListViewEx, public LLOldEvents::LLSimpleListener ...@@ -51,6 +51,7 @@ class LLGroupList: public LLFlatListViewEx, public LLOldEvents::LLSimpleListener
virtual void draw(); // from LLView virtual void draw(); // from LLView
/*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); // from LLView /*virtual*/ BOOL handleRightMouseDown(S32 x, S32 y, MASK mask); // from LLView
/*virtual*/ BOOL handleDoubleClick(S32 x, S32 y, MASK mask); // from LLView
void setNameFilter(const std::string& filter); void setNameFilter(const std::string& filter);
void toggleIcons(); void toggleIcons();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment