From a73eee3655e21c60cbc572216a8a90eff5ac6ea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 6 Aug 2024 18:08:11 +0200 Subject: 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 --- lang/qt/tests/t-ownertrust.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/qt/tests/t-ownertrust.cpp') 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(); }); -- cgit v1.2.3