summaryrefslogtreecommitdiff
path: root/x11/kdelibs3/patches/patch-cc
blob: 2812026e009a55937387bd58fdab0648a0603672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
$NetBSD: patch-cc,v 1.5 2004/02/29 12:00:57 markd Exp $

--- kdeui/ksconfig.cpp.orig	2003-11-30 22:46:51.000000000 +1300
+++ kdeui/ksconfig.cpp
@@ -432,6 +432,8 @@ void KSpellConfig::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");
@@ -495,6 +497,8 @@ void KSpellConfig::getAvailDictsAspell (
   // FIXME: use "aspell dump config" to find out the dict-dir
   QFileInfo dir ("/usr/lib/aspell");
   if (!dir.exists() || !dir.isDir())
+    dir.setFile ("@LOCALBASE@/lib");
+  if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/local/lib/aspell");
   if (!dir.exists() || !dir.isDir())
     dir.setFile ("/usr/share/aspell");
@@ -559,6 +563,8 @@ KSpellConfig::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");
@@ -623,6 +629,8 @@ KSpellConfig::fillDicts( QComboBox* box,
       // FIXME: use "aspell dump config" to find out the dict-dir
       QFileInfo dir ("/usr/lib/aspell");
       if (!dir.exists() || !dir.isDir())
+        dir.setFile ("@LOCALBASE@/lib");
+      if (!dir.exists() || !dir.isDir())
         dir.setFile ("/usr/local/lib/aspell");
       if (!dir.exists() || !dir.isDir())
         dir.setFile ("/usr/share/aspell");