summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-09-09 15:15:57 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-09-09 16:11:48 (GMT)
commite2f34f6b77c8ddb39a6983648818a25236ddeebb (patch)
treec8731bdedcedef446b0bb38034de1764b0686795 /src/corelib/io
parent87c150517b36ac89f17f2455494dc63fccdb5727 (diff)
downloadQt-e2f34f6b77c8ddb39a6983648818a25236ddeebb.zip
Qt-e2f34f6b77c8ddb39a6983648818a25236ddeebb.tar.gz
Qt-e2f34f6b77c8ddb39a6983648818a25236ddeebb.tar.bz2
Set size and modification time to 0 if file does not exist
Since we report the size and modification time as known in the knownFlags() for non existant files, they need to be set to something. In particular, size is used in QFileInfo comparisons. Reviewed-By: joao
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qfilesystemengine_symbian.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemengine_symbian.cpp b/src/corelib/io/qfilesystemengine_symbian.cpp
index 759aafd..e725147 100644
--- a/src/corelib/io/qfilesystemengine_symbian.cpp
+++ b/src/corelib/io/qfilesystemengine_symbian.cpp
@@ -194,6 +194,10 @@ bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemM
if (!err)
data.fillFromTEntry(ent);
}
+ if (err) {
+ data.size_ = 0;
+ data.modificationTime_ = TTime(0);
+ }
data.knownFlagsMask |= QFileSystemMetaData::SymbianTEntryFlags;
}
return data.hasFlags(what);