diff options
author | Ingo Klöcker <[email protected]> | 2023-08-16 12:23:15 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-08-16 12:23:15 +0000 |
commit | 40ca3d58963884a876c826dcf5c32673b8ddc084 (patch) | |
tree | 0bbb8ba3216464dd8fc7742d33968613ad0c5d32 /configure.ac | |
parent | qt: Make toLogString helper public (diff) | |
download | gpgme-40ca3d58963884a876c826dcf5c32673b8ddc084.tar.gz gpgme-40ca3d58963884a876c826dcf5c32673b8ddc084.zip |
qt: Clean up after failure or cancel of sign/encrypt archive operation
* lang/qt/src/qgpgmeencryptarchivejob.cpp (encrypt): Remove output file
if operation was canceled or failed.
* lang/qt/src/qgpgmesignarchivejob.cpp (sign): Ditto.
* lang/qt/src/qgpgmesignencryptarchivejob.cpp (sign_encrypt): Ditto.
* lang/qt/tests/run-encryptarchivejob.cpp (CommandLineOptions): Add
field cancelTimeout.
(parseCommandLine): Add option --cancel-after. Parse option value.
(main): Check for invalid cancel timeout. Start timer for canceling
the job.
* lang/qt/tests/run-signarchivejob.cpp (CommandLineOptions): Add
field cancelTimeout.
(parseCommandLine): Add option --cancel-after. Parse option value.
(main): Check for invalid cancel timeout. Start timer for canceling
the job.
--
This change ensures that the output file is removed if the creation of
a signed or encrypted archive was canceled or failed. The new option
of the test runners enables testing the cancelation of the jobs.
GnuPG-bug-id: 6584
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions