diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-19 16:51:24 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-09-27 19:26:17 +0200 |
commit | 49d24215b1e2557e6d0687bf4f90e6b04a0e33cb (patch) | |
tree | b9ed8909b72683b57b1a612a826421da5c91cb7d /tdeui | |
parent | 6736088603213890fba2c83b0c926db821d31b6e (diff) | |
download | tdelibs-49d24215b1e2557e6d0687bf4f90e6b04a0e33cb.tar.gz tdelibs-49d24215b1e2557e6d0687bf4f90e6b04a0e33cb.zip |
Add an ability to specify default spell checker
There is no reason to determine it with operating system basis.
Change to use build configuration instead. "ispell" by default,
and you can override it.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit 70d26004f065c5fd18be00cab17fc93ed231d849)
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdeui')
-rw-r--r-- | tdeui/ksconfig.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tdeui/ksconfig.cpp b/tdeui/ksconfig.cpp index c814fec5c..cb211e4df 100644 --- a/tdeui/ksconfig.cpp +++ b/tdeui/ksconfig.cpp @@ -188,11 +188,7 @@ KSpellConfig::readGlobalSettings() setDictionary ( kc->readEntry("KSpell_Dictionary") ); setDictFromList ( kc->readNumEntry("KSpell_DictFromList", false) ); setEncoding ( kc->readNumEntry ("KSpell_Encoding", KS_E_UTF8) ); -#if defined(__OpenBSD__) || defined(__FreeBSD__) - setClient ( kc->readNumEntry ("KSpell_Client", KS_CLIENT_ASPELL) ); -#else - setClient ( kc->readNumEntry ("KSpell_Client", KS_CLIENT_ISPELL) ); -#endif + setClient ( kc->readNumEntry ("KSpell_Client", DEFAULT_SPELL_CHECKER) ); return true; } |