aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.cpp6
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);
}
bgstack15