Renaming a file does not change QFile's fileName
commit8d50038174faf315a389010af3a680d865f6843a
authorJoão Abecasis <joao@abecasis.name>
Thu, 26 Mar 2009 15:53:18 +0000 (26 16:53 +0100)
committerJoão Abecasis <joao@abecasis.name>
Thu, 2 Apr 2009 14:29:48 +0000 (2 16:29 +0200)
tree0e211b6f9e93c2694e9b0e80eb4f3857b7055a4a
parenta2fcc4a5ae6addf3688a3686cc89ae20d5426242
Renaming a file does not change QFile's fileName

QFile made no attempt to reset the file name on a rename. We now reset
the fileEngine's fileName if it was able to handle the rename.
Otherwise, we call setFileName, which will result in reallocation of the
fileEngine.

Task-number: 244485
Reviewed-by: mariusSO
src/corelib/io/qfile.cpp