[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kfind
From:       Waldo Bastian <bastian () kde ! org>
Date:       2004-01-05 20:46:00
Message-ID: 20040105204600.88C7C942D () office ! kde ! org
[Download RAW message or body]

CVS commit by waba: 

Ask KDirWatch which method is used.


  M +1 -5      kfinddlg.cpp   1.20
  M +0 -1      kfinddlg.h   1.9


--- kdebase/kfind/kfinddlg.cpp  #1.19:1.20
@@ -89,8 +89,4 @@ KfindDlg::KfindDlg(const KURL & url, QWi
   aboutWin = new KAboutApplication(this, "about", true);
 
-  //Disable the search results update if one hasn't FAM
-  KStandardDirs dirs;
-  dirs.addPrefix("/usr");
-  has_libfam=!dirs.findResource("lib","libfam.so").isNull();
   dirwatch=NULL;
 }
@@ -141,5 +137,5 @@ void KfindDlg::startSearch()
 
   //Getting a list of all subdirs
-  if(tabWidget->isSearchRecursive() && has_libfam)
+  if(tabWidget->isSearchRecursive() && (dirwatch->internalMethod() == KDirWatch::FAM))
   {
     QStringList subdirs=getAllSubdirs(query->url().path());

--- kdebase/kfind/kfinddlg.h  #1.8:1.9
@@ -65,5 +65,4 @@ private:
   KDirLister *dirlister;
   KDirWatch *dirwatch;
-  bool has_libfam;
 };
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic