summaryrefslogtreecommitdiffstats
path: root/tdeui/ksconfig.cpp
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-19 14:00:20 +0900
committerSlávek Banko <slavek.banko@axis.cz>2020-09-27 19:06:55 +0200
commitbbe1b42cbbc7293041a83b154f969792a2592510 (patch)
tree7b70d04adacaacf071f7db37cb7f9e4915916d96 /tdeui/ksconfig.cpp
parent2706c5674eb1ea3fffdca4d8c3edb3b25335e731 (diff)
downloadtdelibs-bbe1b42cbbc7293041a83b154f969792a2592510.tar.gz
tdelibs-bbe1b42cbbc7293041a83b154f969792a2592510.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>
Diffstat (limited to 'tdeui/ksconfig.cpp')
-rw-r--r--tdeui/ksconfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdeui/ksconfig.cpp b/tdeui/ksconfig.cpp
index 6ae9e3d5f..c814fec5c 100644
--- a/tdeui/ksconfig.cpp
+++ b/tdeui/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 "