summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine_unix.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-09-13 19:35:46 +0100
committerShane Kearns <shane.kearns@accenture.com>2010-09-15 13:59:55 +0100
commit3f5d522e7abe15abc97ef1aa27a33311d74f8312 (patch)
treea14f0c03411e7668203f4f553edc71b32796f3cc /src/corelib/io/qfsfileengine_unix.cpp
parenta4bd280f48b1508912ae50e28b47f0f74fd08c37 (diff)
Fix for QFile::remove autotest
After removing a file, invalidate the cached metadata to force any calls that require metadata to fetch it from the file system. Reviewed-By: joao
Diffstat (limited to 'src/corelib/io/qfsfileengine_unix.cpp')
-rw-r--r--src/corelib/io/qfsfileengine_unix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qfsfileengine_unix.cpp b/src/corelib/io/qfsfileengine_unix.cpp
index 418506c62e..1d1baf9669 100644
--- a/src/corelib/io/qfsfileengine_unix.cpp
+++ b/src/corelib/io/qfsfileengine_unix.cpp
@@ -589,6 +589,7 @@ bool QFSFileEngine::remove()
{
Q_D(QFSFileEngine);
bool ret = QFileSystemEngine::removeFile(d->fileEntry);
+ d->metaData.clear();
if (!ret) {
#ifdef Q_OS_SYMBIAN
//TODO: error reporting