diff options
Diffstat (limited to 'src/corelib/io/qfile.cpp')
-rw-r--r-- | src/corelib/io/qfile.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/corelib/io/qfile.cpp b/src/corelib/io/qfile.cpp index c4bc612..8eea244 100644 --- a/src/corelib/io/qfile.cpp +++ b/src/corelib/io/qfile.cpp @@ -1036,8 +1036,11 @@ bool QFile::open(OpenMode mode) #endif { QIODevice::open(mode); - if (mode & Append) - seek(size()); + if (mode & Append) { + //The file engine should have done this in open(), + //this is a workaround for backward compatibility + fileEngine()->seek(size()); + } return true; } QFile::FileError err = d->fileEngine->error(); |