diff options
author | Shane Kearns <shane.kearns@accenture.com> | 2010-10-13 16:42:54 (GMT) |
---|---|---|
committer | Shane Kearns <shane.kearns@accenture.com> | 2010-10-18 14:01:06 (GMT) |
commit | c822fba71e2949eea3de49009ef99602a4110914 (patch) | |
tree | d1ad452b0509350a38b5fb9df01e3c7dd28abb7f | |
parent | 7a5adf67655b54a0ea43b641dfbd0924b06d214a (diff) | |
download | Qt-c822fba71e2949eea3de49009ef99602a4110914.zip Qt-c822fba71e2949eea3de49009ef99602a4110914.tar.gz Qt-c822fba71e2949eea3de49009ef99602a4110914.tar.bz2 |
Fix QFileInfo("").exists() regression for symbian
Because RFs::Entry("") gets the entry for the current directory, we
need to explicitly check for empty strings and treat as a non existant file.
Reviewed-By: joao
-rw-r--r-- | src/corelib/io/qfilesystemengine_symbian.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/corelib/io/qfilesystemengine_symbian.cpp b/src/corelib/io/qfilesystemengine_symbian.cpp index dcb99d4..89a2b29 100644 --- a/src/corelib/io/qfilesystemengine_symbian.cpp +++ b/src/corelib/io/qfilesystemengine_symbian.cpp @@ -222,7 +222,9 @@ bool QFileSystemEngine::fillMetaData(const QFileSystemEntry &entry, QFileSystemM RFs& fs(qt_s60GetRFs()); TInt err; QFileSystemEntry absentry(absoluteName(entry)); - if (absentry.isRoot()) { + if (entry.isEmpty()) { + err = KErrNotFound; + } else if (absentry.isRoot()) { //Root directories don't have an entry, and Entry() returns KErrBadName. //Therefore get information about the volume instead. TInt drive; |