aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/tests/t-ownertrust.cpp
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2024-08-06 16:08:11 +0000
committerIngo Klöcker <[email protected]>2024-08-07 08:53:21 +0000
commita73eee3655e21c60cbc572216a8a90eff5ac6ea5 (patch)
treed2ea6393c454b3d7806d474e96e4123419ae4553 /lang/qt/tests/t-ownertrust.cpp
parenttests,json: Remove no longer needed code (diff)
downloadgpgme-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.cpp3
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();
});