Commit d4dd4453 authored by NiranV's avatar NiranV

Fixed: Viewer attempting to open an empty invalid chat when double clicking "None" group.

parent d128dae3
......@@ -156,9 +156,17 @@ BOOL LLGroupList::handleDoubleClick(S32 x, S32 y, MASK mask)
// Handle double click only for the selected item in the list, skip clicks on empty space.
if (handled)
{
if (mDoubleClickSignal && getItemsRect().pointInRect(x, y))
LLUUID selected_group = getSelectedUUID();
if (selected_group.notNull())
{
(*mDoubleClickSignal)(this, x, y, mask);
if (mDoubleClickSignal && getItemsRect().pointInRect(x, y))
{
(*mDoubleClickSignal)(this, x, y, mask);
}
}
else
{
LLGroupActions::activate(selected_group);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment