Wired up 'Unblock all spam sources' preferences button

meow-7.2.2
Arrehn 2011-10-13 22:19:05 -04:00
parent c704d64d4e
commit f34efb4a8f
3 changed files with 9 additions and 0 deletions

View File

@ -357,6 +357,7 @@ void NACLAntiSpamRegistry::purgeAllQueues()
{
queues[queue]->purgeEntries();
}
llinfos << "AntiSpam Queues Purged" << llendl;
}
int NACLAntiSpamRegistry::checkGlobalEntry(LLUUID& name, U32 multiplier)
{

View File

@ -118,6 +118,7 @@
//-TT Client LSL Bridge
#include "fslslbridge.h"
//-TT
#include "NACLantispam.h"
// [SL:KB] - Patch: Misc-Spellcheck | Checked: 2011-09-06 (Catznip-2.8.0a) | Added: Catznip-2.8.0a
#include "llhunspell.h"
@ -377,6 +378,7 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key)
mCommitCallbackRegistrar.add("Pref.BlockList", boost::bind(&LLFloaterPreference::onClickBlockList, this));
mCommitCallbackRegistrar.add("Pref.Proxy", boost::bind(&LLFloaterPreference::onClickProxySettings, this));
mCommitCallbackRegistrar.add("FS.ToggleSortContacts", boost::bind(&LLFloaterPreference::onClickSortContacts, this));
mCommitCallbackRegistrar.add("NACL.AntiSpamUnblock", boost::bind(&LLFloaterPreference::onClickClearSpamList, this));
//[ADD - Clear Settings : SJ]
mCommitCallbackRegistrar.add("Pref.ClearSettings", boost::bind(&LLFloaterPreference::onClickClearSettings, this));
@ -1045,6 +1047,11 @@ void LLFloaterPreference::onClickClearSettings()
LLNotificationsUtil::add("FirestormClearSettingsPrompt",LLSD(), LLSD(), callback_clear_settings);
}
void LLFloaterPreference::onClickClearSpamList()
{
NACLAntiSpamRegistry::purgeAllQueues();
}
//[FIX JIRA-1971 : SJ] Show an notify when Cookies setting change
void LLFloaterPreference::onClickCookies()
{

View File

@ -158,6 +158,7 @@ public:
// if the quality radio buttons are changed
void onChangeQuality(const LLSD& data);
void onClickClearSettings();
void onClickClearSpamList();
//void callback_clear_settings(const LLSD& notification, const LLSD& response);
void updateSliderText(LLSliderCtrl* ctrl, LLTextBox* text_box);