Fix regression introduced in c08e708037d33271825ce6a6a1ac640e96b70c36
commit022fa9c37bf1789ad13563086e174264e865ff0d
authorJoão Abecasis <joao@abecasis.name>
Mon, 16 Nov 2009 15:11:09 +0000 (16 16:11 +0100)
committerJason McDonald <jason.mcdonald@nokia.com>
Thu, 19 Nov 2009 03:02:07 +0000 (19 13:02 +1000)
tree92ff0400cc9e9f4f53c25eaed8744d234a49fed3
parent302152bca4dc690574e1b841b60a343dba47e86a
Fix regression introduced in c08e708037d33271825ce6a6a1ac640e96b70c36

When writing nothing to a file, not actually writing anything is not an
error.

Also, from a change introduced in the same commit, there is no point in
checking for EOF when writing.

Task-number: QTBUG-5847
Reviewed-by: Olivier Goffart
(cherry picked from commit 72ee915bb0465549b7ca8e62d2af146cc44fdeac)
src/corelib/io/qfsfileengine.cpp
tests/auto/qfile/tst_qfile.cpp