From 4f8e6a188a2dc445c7478e1d90addbae6eeafa97 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 25 Apr 2014 11:52:25 -0400 Subject: [PATCH] Bypass canClose check for new groups by calling onClose directly. (Fixes making new groups!) --- indra/newview/llgroupmgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/indra/newview/llgroupmgr.cpp b/indra/newview/llgroupmgr.cpp index cc42294fd..bc75b0f7d 100644 --- a/indra/newview/llgroupmgr.cpp +++ b/indra/newview/llgroupmgr.cpp @@ -47,6 +47,7 @@ #include "llviewerregion.h" #include "llviewerwindow.h" #include "llfloaterdirectory.h" +#include "llfloatergroupinfo.h" #include "llgroupactions.h" #include "llnotificationsutil.h" #include "lluictrlfactory.h" @@ -1448,7 +1449,8 @@ void LLGroupMgr::processCreateGroupReply(LLMessageSystem* msg, void ** data) gAgent.mGroups.push_back(gd); - LLGroupActions::closeGroup(LLUUID::null); + if (LLFloaterGroupInfo* flooter = LLFloaterGroupInfo::getInstance(LLUUID::null)) + flooter->onClose(false); LLGroupActions::showTab(group_id, "roles_tab"); } else