Home GnuPG
Diffusion GPGME 8d8985bda174

qt: Refactor removal of output file on cancel or error

Description

qt: Refactor removal of output file on cancel or error

* lang/qt/src/util.h, lang/qt/src/util.cpp (removeFile): New.
* lang/qt/src/qgpgmeencryptarchivejob.cpp (encrypt): Move removal of
output file from here
(encrypt_to_filename): ... to here and use new function.
* lang/qt/src/qgpgmesignarchivejob.cpp (sign): Move removal of output
file from here
(sign_to_filename): ... to here and use new function.
* lang/qt/src/qgpgmesignencryptarchivejob.cpp (sign_encrypt): Move
removal of output file from here
(sign_encrypt_to_filename): ... to here and use new function.

Details

Provenance
ikloeckerAuthored on Oct 27 2023, 11:27 AM
Parents
rM0a0a5906d561: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T6721: QGpgME: Create archive as .part and rename on successful creation