From a9af2175378b71162d3fe740fcb6a3fe4b630e6f Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Mon, 23 Aug 2010 23:45:31 -0500 Subject: Finished up ability to ignore group chat from specific groups. Uncheck the "Join group chat" checkbox in the group info window. The list of ignored groups is saved per-account in ignore_groups.xml. --- linden/indra/newview/llpanelgroupgeneral.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'linden/indra/newview/llpanelgroupgeneral.cpp') diff --git a/linden/indra/newview/llpanelgroupgeneral.cpp b/linden/indra/newview/llpanelgroupgeneral.cpp index 402929e..55e1b33 100644 --- a/linden/indra/newview/llpanelgroupgeneral.cpp +++ b/linden/indra/newview/llpanelgroupgeneral.cpp @@ -545,7 +545,6 @@ bool LLPanelGroupGeneral::apply(std::string& mesg) } BOOL receive_notices = false; - BOOL receive_chat = false; BOOL list_in_profile = false; if (mCtrlReceiveNotices) receive_notices = mCtrlReceiveNotices->get(); @@ -556,13 +555,12 @@ bool LLPanelGroupGeneral::apply(std::string& mesg) if (mCtrlReceiveChat) { - receive_chat = mCtrlReceiveChat->get(); + bool receive_chat = mCtrlReceiveChat->get(); + gIMMgr->updateIgnoreGroup(mGroupID, !receive_chat); + // Save here too in case we crash somewhere down the road -- MC + gIMMgr->saveIgnoreGroup(); } - gIMMgr->updateIgnoreGroup(mGroupID, receive_chat); - // Save here too in case we crash somewhere down the road -- MC - gIMMgr->saveIgnoreGroup(); - mChanged = FALSE; return true; -- cgit v1.1