diff options
author | Oz Linden <oz@lindenlab.com> | 2012-05-31 14:26:15 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-05-31 14:26:15 -0400 |
commit | 925db41711bc319e870aa35f74b58f4e7a74420c (patch) | |
tree | 69bac61403e5e432c073fb3e7ea29b6c3107a142 /indra/newview/llappviewer.cpp | |
parent | f09bd7669fcf976edf82c3ce70b26ea044019c67 (diff) | |
parent | 5cad51594dc583c63bf88376feedb0b170868d3d (diff) |
merge changes for storm-276
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r-- | indra/newview/llappviewer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 1174d108d2..fac5416aab 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -93,6 +93,7 @@ #include "llsecondlifeurls.h" #include "llupdaterservice.h" #include "llcallfloater.h" +#include "llspellcheck.h" // Linden library includes #include "llavatarnamecache.h" @@ -114,6 +115,7 @@ // Third party library includes #include <boost/bind.hpp> #include <boost/foreach.hpp> +#include <boost/algorithm/string.hpp> @@ -2497,6 +2499,19 @@ bool LLAppViewer::initConfiguration() //gDirUtilp->setSkinFolder("default"); } + if (gSavedSettings.getBOOL("SpellCheck")) + { + std::list<std::string> dict_list; + std::string dict_setting = gSavedSettings.getString("SpellCheckDictionary"); + boost::split(dict_list, dict_setting, boost::is_any_of(std::string(","))); + if (!dict_list.empty()) + { + LLSpellChecker::setUseSpellCheck(dict_list.front()); + dict_list.pop_front(); + LLSpellChecker::instance().setSecondaryDictionaries(dict_list); + } + } + mYieldTime = gSavedSettings.getS32("YieldTime"); // Read skin/branding settings if specified. |