summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2012-02-09 22:02:32 +0100
committerKitty Barnett <develop@catznip.com>2012-02-09 22:02:32 +0100
commite615660823e680e824d2db0f1a59917597e64a13 (patch)
tree2fa3f0dda243312b4b0b9f0871f1848dfb49d2a4 /indra/llui
parent9c792e337695b904e4f52fce83b293a2e97fdeaf (diff)
STORM-276 Differentiate between primary and secondary dictionaries
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llspellcheck.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/llui/llspellcheck.cpp b/indra/llui/llspellcheck.cpp
index 46df44cdba..aa39e21a96 100644
--- a/indra/llui/llspellcheck.cpp
+++ b/indra/llui/llspellcheck.cpp
@@ -122,9 +122,7 @@ void LLSpellChecker::refreshDictionaryMap()
tmp_app_path = (sdDict.has("name")) ? app_path + sdDict["name"].asString() : LLStringUtil::null;
tmp_user_path = (sdDict.has("name")) ? user_path + sdDict["name"].asString() : LLStringUtil::null;
sdDict["installed"] =
- (!tmp_app_path.empty()) &&
- ( ((gDirUtilp->fileExists(tmp_user_path + ".aff")) && (gDirUtilp->fileExists(tmp_user_path + ".dic"))) ||
- ((gDirUtilp->fileExists(tmp_app_path + ".aff")) && (gDirUtilp->fileExists(tmp_app_path + ".dic"))) );
+ (!tmp_app_path.empty()) && ((gDirUtilp->fileExists(tmp_user_path + ".dic")) || (gDirUtilp->fileExists(tmp_app_path + ".dic")));
sdDict["has_custom"] = (!tmp_user_path.empty()) && (gDirUtilp->fileExists(tmp_user_path + DICT_CUSTOM_SUFFIX + ".dic"));
sdDict["has_ignore"] = (!tmp_user_path.empty()) && (gDirUtilp->fileExists(tmp_user_path + DICT_IGNORE_SUFFIX + ".dic"));
}
@@ -243,7 +241,7 @@ void LLSpellChecker::initHunspell(const std::string& dict_name)
}
const LLSD dict_entry = (!dict_name.empty()) ? getDictionaryData(dict_name) : LLSD();
- if ( (!dict_entry.isDefined()) || (!dict_entry["installed"].asBoolean()) )
+ if ( (!dict_entry.isDefined()) || (!dict_entry["installed"].asBoolean()) || (!dict_entry["is_primary"].asBoolean()))
{
sSettingsChangeSignal();
return;