D20775: file import: do not use overwritten temorary file
noreply at phabricator.kde.org
Tue Apr 23 21:45:05 BST 2019
tklausmann created this revision.
tklausmann added a reviewer: Umbrello.
Herald added a subscriber: umbrello-devel.
Herald added a project: Umbrello.
tklausmann requested review of this revision.
We checked if the temporary file we created still exists after its creation,
yet in the meantime we have already copied to it (which overwrites it):
KIO::FileCopyJob *job = KIO::file_copy(url, dest, -1, KIO::Overwrite);
Instead of the temporary file, check if the regular file we use later on exists.
To: tklausmann, #umbrello
Cc: umbrello-devel, vanderbilt, astranieri
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the umbrello-devel