diff options
author | OBATA Akio <obache@wizdas.com> | 2020-08-19 14:00:20 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-02-03 22:44:26 +0100 |
commit | 0aa014e9d244fbfb04170d36d6e1eb95e1907a33 (patch) | |
tree | a7f0914e3f733713044a2e9e92c018f1672731dc /kdeui/ksconfig.cpp | |
parent | 711ff288fa939c7cefa7bb9a81ded2a5a10a5f8f (diff) | |
download | tdelibs-0aa014e9d244fbfb04170d36d6e1eb95e1907a33.tar.gz tdelibs-0aa014e9d244fbfb04170d36d6e1eb95e1907a33.zip |
Add the ability to detect ispell lib directory
Check LIBDIR ispell compile option and use only it for ispell lib directory
if found.
Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit bbe1b42cbbc7293041a83b154f969792a2592510)
Diffstat (limited to 'kdeui/ksconfig.cpp')
-rw-r--r-- | kdeui/ksconfig.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kdeui/ksconfig.cpp b/kdeui/ksconfig.cpp index 81c6e8417..7b58d5c33 100644 --- a/kdeui/ksconfig.cpp +++ b/kdeui/ksconfig.cpp @@ -603,6 +603,9 @@ KSpellConfig::fillDicts( TQComboBox* box, TQStringList* dictionaries ) box->insertItem( i18n("ISpell Default") ); // dictionary path +#ifdef ISPELL_LIBDIR + TQFileInfo dir (ISPELL_LIBDIR); +#else TQFileInfo dir ("/usr/lib/ispell"); if (!dir.exists() || !dir.isDir()) dir.setFile ("/usr/local/lib/ispell"); @@ -617,6 +620,7 @@ KSpellConfig::fillDicts( TQComboBox* box, TQStringList* dictionaries ) if (!dir.exists() || !dir.isDir()) dir.setFile ("/usr/local/lib"); */ +#endif if (!dir.exists() || !dir.isDir()) return; kdDebug(750) << "KSpellConfig::getAvailDictsIspell " |