diff -r 22e202702210 -r 1bebd60c0f00 filemanager/src/filemanager/src/fmfindthread.cpp --- a/filemanager/src/filemanager/src/fmfindthread.cpp Fri Sep 17 08:27:42 2010 +0300 +++ b/filemanager/src/filemanager/src/fmfindthread.cpp Mon Oct 04 00:06:46 2010 +0300 @@ -17,6 +17,7 @@ */ #include "fmfindthread.h" +#include "fmutils.h" #include "fmcommon.h" #include @@ -117,17 +118,21 @@ QString name = it->fileName(); QString absolutPath = it->absoluteFilePath(); if (findPattern.exactMatch( it->fileName() )) { - tempResultList.append( it->absoluteFilePath() ); - if (tempResultList.count() > notifyPerCount) { - emitFound(); - } else if (time.elapsed() > notifyPerElapsedTime && tempResultList.count() > 0) { - emitFound(); + if( !FmUtils::isSystemFolder( it->absoluteFilePath()) ) { + tempResultList.append( it->absoluteFilePath() ); + if (tempResultList.count() > notifyPerCount) { + emitFound(); + } else if (time.elapsed() > notifyPerElapsedTime && tempResultList.count() > 0) { + emitFound(); + } } } // exclude directory named ".." and "." if (it->isDir() && it->fileName() != ParentDir && it->fileName() != CurrentDir ) { - findDirs.append( QDir( it->absoluteFilePath() ) ); + if( !FmUtils::isSystemFolder( it->absoluteFilePath()) ) { + findDirs.append( QDir( it->absoluteFilePath() ) ); + } } }