40 lines
1.7 KiB
Text
40 lines
1.7 KiB
Text
$NetBSD: patch-ad,v 1.2 2012/03/19 11:28:49 markd Exp $
|
|
|
|
--- kde3support/kdeui/k3sconfig.cpp.orig 2011-04-01 13:55:50.000000000 +0000
|
|
+++ kde3support/kdeui/k3sconfig.cpp
|
|
@@ -470,6 +470,8 @@ void K3SpellConfig::getAvailDictsIspell
|
|
// dictionary path
|
|
QFileInfo dir ("/usr/lib/ispell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
+ dir.setFile ("@LOCALBASE@/lib");
|
|
+ if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/lib/ispell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/share/ispell");
|
|
@@ -542,6 +544,8 @@ void K3SpellConfig::getAvailDictsAspell
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/lib" KDELIBSUFF "/aspell-0.60");
|
|
if (!dir.exists() || !dir.isDir())
|
|
+ dir.setFile ("@LOCALBASE@/lib");
|
|
+ if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/lib" KDELIBSUFF "/aspell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/share/aspell");
|
|
@@ -683,6 +687,8 @@ K3SpellConfig::fillDicts( QComboBox* box
|
|
// dictionary path
|
|
QFileInfo dir ("/usr/lib/ispell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
+ dir.setFile ("@LOCALBASE@/lib");
|
|
+ if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/lib/ispell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/share/ispell");
|
|
@@ -760,6 +766,8 @@ K3SpellConfig::fillDicts( QComboBox* box
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/lib" KDELIBSUFF "/aspell-0.60");
|
|
if (!dir.exists() || !dir.isDir())
|
|
+ dir.setFile ("@LOCALBASE@/lib");
|
|
+ if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/local/lib" KDELIBSUFF "/aspell");
|
|
if (!dir.exists() || !dir.isDir())
|
|
dir.setFile ("/usr/share/aspell");
|