From bbe1b42cbbc7293041a83b154f969792a2592510 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Wed, 19 Aug 2020 14:00:20 +0900 Subject: 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 --- tdeui/ksconfig.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tdeui') 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 " -- cgit v1.2.1