summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorTank_Master <none@none>2011-12-20 22:17:20 -0800
committerTank_Master <none@none>2011-12-20 22:17:20 -0800
commit1cc154166fe504e17735669b7b9e366f93e34d64 (patch)
tree426a631b85a7ff6f5a10e2806d87485609bacd52 /indra/newview/llfloaterpreference.cpp
parentb022ebf13c9a227f87a112419e237894a1231c8c (diff)
STORM-1738 - Add autocorrect functionality
Ported with owner permission from Firestorm, inital work done by LordGregGreg Back
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rwxr-xr-xindra/newview/llfloaterpreference.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index a333989e7e..368d8f1efe 100755
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -35,7 +35,7 @@
#include "llfloaterpreference.h"
#include "message.h"
-
+#include "llautocorrectfloater.h"
#include "llagent.h"
#include "llavatarconstants.h"
#include "llcheckboxctrl.h"
@@ -354,6 +354,8 @@ LLFloaterPreference::LLFloaterPreference(const LLSD& key)
gSavedSettings.getControl("NameTagShowUsernames")->getCommitSignal()->connect(boost::bind(&handleNameTagOptionChanged, _2));
gSavedSettings.getControl("NameTagShowFriends")->getCommitSignal()->connect(boost::bind(&handleNameTagOptionChanged, _2));
gSavedSettings.getControl("UseDisplayNames")->getCommitSignal()->connect(boost::bind(&handleDisplayNamesOptionChanged, _2));
+
+ mCommitCallbackRegistrar.add("Pref.ShowAC", boost::bind(&AutoCorrectFloater::showFloater));
LLAvatarPropertiesProcessor::getInstance()->addObserver( gAgent.getID(), this );
}