From fa2da52d556730593e4c3e0754872555a25ee4c2 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Wed, 4 Aug 2004 17:09:06 +0000 Subject: [PATCH] Don't nuke the whole search file but only the index when invalidating a folder. Proposed by and discusses with Don. svn path=/trunk/kdepim/; revision=336108 --- kmfoldersearch.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kmfoldersearch.cpp b/kmfoldersearch.cpp index a394994d7..de2ac3044 100644 --- a/kmfoldersearch.cpp +++ b/kmfoldersearch.cpp @@ -1069,7 +1069,11 @@ void KMFolderSearch::examineInvalidatedFolder(KMFolder *folder) if (mSearch) mSearch->stop(); - removeContents(); + if (!mUnlinked) { + unlink(QFile::encodeName(indexLocation())); + mUnlinked = true; + } + if (!isOpened()) //give up, until the user manually opens the folder return;