diff options
author | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 15:04:12 -0400 |
---|---|---|
committer | ZackaryWelch <welch.zackary@gmail.com> | 2018-06-04 15:04:12 -0400 |
commit | f21911c0d6867d8c86ea644c95d913018868ac55 (patch) | |
tree | 278373d33b83beb3a1374ac4b0add02d9de32804 /src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | |
parent | Added spellchecking per Hunspell, which is currently disabled. (diff) | |
download | lumina-f21911c0d6867d8c86ea644c95d913018868ac55.tar.gz lumina-f21911c0d6867d8c86ea644c95d913018868ac55.tar.bz2 lumina-f21911c0d6867d8c86ea644c95d913018868ac55.zip |
Removed extra file and whitespace
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index d3b0338f..fe1e689b 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -414,7 +414,7 @@ void MainUI::ModifyColors(){ void MainUI::SetLanguage() { QDir dir(hunspellPath); QStringList files = dir.entryList(QStringList() << "*.dic", QDir::Files); - QStringList items; + QStringList items; int defaultDic = 0; for(int i = 0; i < files.size(); i++) { QString item = files[i].split('.')[0]; @@ -426,7 +426,7 @@ void MainUI::SetLanguage() { QString dic = QInputDialog::getItem(this, "Set Language for Document", "Language:", items, defaultDic); settings->setValue("language/", dic); if(hunspell) - delete hunspell; + delete hunspell; hunspell = new Hunspell(QString(hunspellPath+dic+".aff").toLocal8Bit(), QString(hunspellPath+dic+".dic").toLocal8Bit()); @@ -664,7 +664,7 @@ void MainUI::checkSpelling(int bpos, int epos) { checkWord(block); } } - + cur->setWordList(wordList); } |