summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-08-27 16:56:47 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-08-31 17:30:58 (GMT)
commit7c06af4528d7aa7186b12546c261d5d2a0a3641d (patch)
tree509c44f9b7f78c107845338d338e91a6293e8a9b /examples
parent9d24605add8daabfa55e1085e71ed47b14ed7d83 (diff)
downloadQt-7c06af4528d7aa7186b12546c261d5d2a0a3641d.zip
Qt-7c06af4528d7aa7186b12546c261d5d2a0a3641d.tar.gz
Qt-7c06af4528d7aa7186b12546c261d5d2a0a3641d.tar.bz2
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 'examples')
0 files changed, 0 insertions, 0 deletions