diff options
author | Ingo Klöcker <[email protected]> | 2024-08-06 16:08:11 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2024-08-07 08:53:21 +0000 |
commit | a73eee3655e21c60cbc572216a8a90eff5ac6ea5 (patch) | |
tree | d2ea6393c454b3d7806d474e96e4123419ae4553 /lang/qt/tests/t-ownertrust.cpp | |
parent | tests,json: Remove no longer needed code (diff) | |
download | gpgme-a73eee3655e21c60cbc572216a8a90eff5ac6ea5.tar.gz gpgme-a73eee3655e21c60cbc572216a8a90eff5ac6ea5.zip |
qt: Use --quick-set-ownertrust if available
* lang/qt/src/qgpgmechangeownertrustjob.cpp (set_owner_trust): New.
(QGpgMEChangeOwnerTrustJob::start): Use set_owner_trust if gpg is new
enough.
* lang/qt/tests/t-ownertrust.cpp
(ChangeOwnerTrustTest::testChangeOwnerTrust): Log unexpected error.
--
Using the --quick-set-ownertrust command to set the owner trust is much
more robust than using the edit interface. Prefer the former if gpg
supports it.
GnuPG-bug-id: 7239
Diffstat (limited to 'lang/qt/tests/t-ownertrust.cpp')
-rw-r--r-- | lang/qt/tests/t-ownertrust.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/qt/tests/t-ownertrust.cpp b/lang/qt/tests/t-ownertrust.cpp index 653304e4..a032dfbd 100644 --- a/lang/qt/tests/t-ownertrust.cpp +++ b/lang/qt/tests/t-ownertrust.cpp @@ -89,6 +89,9 @@ private Q_SLOTS: ChangeOwnerTrustJob *job3 = openpgp()->changeOwnerTrustJob(); connect(job3, &ChangeOwnerTrustJob::result, this, [this](Error e) { + if (e) { + qDebug() << "Error in result: " << e; + } QVERIFY(!e); Q_EMIT asyncDone(); }); |