summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <francois.andriot@free.fr>2014-10-05 16:41:48 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-12-23 02:22:52 +0100
commit50c30d0de1bc61aa51524a735d67d442cbfd9eec (patch)
tree562b84866e939b5065d21d669eb642e2d9805329
parent1c8f40addacd487fd6ff522b0969a072a28fa55e (diff)
downloadtdelibs-50c30d0de1bc61aa51524a735d67d442cbfd9eec.tar.gz
tdelibs-50c30d0de1bc61aa51524a735d67d442cbfd9eec.zip
Fix default spell checker on openbsd
(cherry picked from commit cca50763480753652ae019bf74eb1fa98194d209)
-rw-r--r--kdeui/ksconfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/kdeui/ksconfig.cpp b/kdeui/ksconfig.cpp
index 5ca0c2b85..8774fc27e 100644
--- a/kdeui/ksconfig.cpp
+++ b/kdeui/ksconfig.cpp
@@ -188,7 +188,11 @@ KSpellConfig::readGlobalSettings()
setDictionary ( kc->readEntry("KSpell_Dictionary") );
setDictFromList ( kc->readNumEntry("KSpell_DictFromList", false) );
setEncoding ( kc->readNumEntry ("KSpell_Encoding", KS_E_UTF8) );
+#ifdef __OpenBSD__
+ setClient ( kc->readNumEntry ("KSpell_Client", KS_CLIENT_ASPELL) );
+#else
setClient ( kc->readNumEntry ("KSpell_Client", KS_CLIENT_ISPELL) );
+#endif
return true;
}