From 38719e5dfdf1887d7e08f6b36ebf9c87c262a016 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 16 Jan 2011 19:51:48 +0000 Subject: Remember all iterated directories to prevent an endless recursion by links. Tested with search all files below / svn path=/trunk/KDE/kdebase/apps/; revision=1214895 --- src/search/filenamesearchprotocol.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/search/filenamesearchprotocol.h') diff --git a/src/search/filenamesearchprotocol.h b/src/search/filenamesearchprotocol.h index b2d64d6e3..4a854d729 100644 --- a/src/search/filenamesearchprotocol.h +++ b/src/search/filenamesearchprotocol.h @@ -50,9 +50,11 @@ private: */ bool contentContainsPattern(const KUrl& fileName) const; + void cleanup(); bool m_checkContent; QRegExp* m_regExp; + QSet m_iteratedDirs; }; #endif -- cgit v1.3.1