diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-09-09 15:15:57 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-09-09 16:11:48 (GMT) |
commit | e2f34f6b77c8ddb39a6983648818a25236ddeebb (patch) | |
tree | c8731bdedcedef446b0bb38034de1764b0686795 /src/corelib/io/qfilesystemengine_symbian.cpp | |
parent | 87c150517b36ac89f17f2455494dc63fccdb5727 (diff) | |
download | Qt-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/qfilesystemengine_symbian.cpp')
-rw-r--r-- | src/corelib/io/qfilesystemengine_symbian.cpp | 4 |
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); |