Spell check now sorts user dic when adding a word

This commit is contained in:
niksedk 2014-06-15 21:45:42 +02:00
parent 846b9af7c2
commit 229db8c6f9

View File

@ -445,10 +445,11 @@ namespace Nikse.SubtitleEdit.Forms
_userPhraseList.Add(s);
else
_userWordList.Add(s);
XmlNode node = _userWordDictionary.CreateElement("word");
node.InnerText = s;
_userWordDictionary.DocumentElement.AppendChild(node);
_userWordDictionary.Save(_dictionaryFolder + _languageName + "_user.xml");
Utilities.AddToUserDictionary(s, _languageName);
//XmlNode node = _userWordDictionary.CreateElement("word");
//node.InnerText = s;
//_userWordDictionary.DocumentElement.AppendChild(node);
//_userWordDictionary.Save(_dictionaryFolder + _languageName + "_user.xml");
}
break;
case SpellCheckAction.AddToNamesEtc: