summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-08-27 18:56:47 +0200
committerJoão Abecasis <joao@abecasis.name>2009-08-31 19:30:58 +0200
commit7c06af4528d7aa7186b12546c261d5d2a0a3641d (patch)
tree509c44f9b7f78c107845338d338e91a6293e8a9b /util
parent9d24605add8daabfa55e1085e71ed47b14ed7d83 (diff)
Reset QTemporaryFile's state after failed open() on Windows
This fixes a regression introduced in 4.5.2 where QTemporaryFile would no longer attempt to generate a random name after a failed open. Under certain situations, this led to a non-random file being left behind in QDir::tempPath when using the fallback implementation of QFile::copy. Avoid calling QFSFileEngine::setFileName() on a template, so as not to process it as file name. By consistently not calling setFileTemplate in the constructor, we also delay allocation of the fileEngine. Changes made to that function also keep it from unnecessarily allocating the fileEngine. Task-number: 260165 Reviewed-by: Thiago Macieira
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions