summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qfsfileengine.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2010-09-08 19:28:17 (GMT)
committerShane Kearns <shane.kearns@accenture.com>2010-09-09 10:09:36 (GMT)
commitd95b3bf38b9c25a38ade7c92fd434e42346729bd (patch)
treea789522ec5ff25302f0fba0ff7849541335a1c1d /src/corelib/io/qfsfileengine.cpp
parent927469d518afa64d8ec8dc54e6169fa43b54cd96 (diff)
downloadQt-d95b3bf38b9c25a38ade7c92fd434e42346729bd.zip
Qt-d95b3bf38b9c25a38ade7c92fd434e42346729bd.tar.gz
Qt-d95b3bf38b9c25a38ade7c92fd434e42346729bd.tar.bz2
Implement basic symbian native file IO to QFsFileEngine
Enough functionality to be able to read/write files for the tst_qfileinfo autotest to pass. Reviewed-By: joao
Diffstat (limited to 'src/corelib/io/qfsfileengine.cpp')
-rw-r--r--src/corelib/io/qfsfileengine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/io/qfsfileengine.cpp b/src/corelib/io/qfsfileengine.cpp
index 089f1a1..9c8df39 100644
--- a/src/corelib/io/qfsfileengine.cpp
+++ b/src/corelib/io/qfsfileengine.cpp
@@ -352,7 +352,11 @@ bool QFSFileEngine::close()
bool QFSFileEnginePrivate::closeFdFh()
{
Q_Q(QFSFileEngine);
- if (fd == -1 && !fh)
+ if (fd == -1 && !fh
+#ifdef Q_OS_SYMBIAN
+ && !symbianFile.SubSessionHandle()
+#endif
+ )
return false;
// Flush the file if it's buffered, and if the last flush didn't fail.