Qt: Fix debug output in t-ownertrust
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 1 Jun 2016 08:01:43 +0000 (10:01 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 1 Jun 2016 11:48:28 +0000 (13:48 +0200)
* lang/qt/tests/t-ownertrust.cpp (testChangeOwnerTrust): Remove
general debug of trust level. Add debug output for error.

lang/qt/tests/t-ownertrust.cpp

index d4385bf..eb6c3db 100644 (file)
@@ -58,12 +58,14 @@ private Q_SLOTS:
         Q_ASSERT (!result.error());
         Q_ASSERT (keys.size() == 1);
         Key key = keys.front();
-        qDebug() << "Trust is: " << key.ownerTrust();
         Q_ASSERT (key.ownerTrust() == Key::Unknown);
 
         ChangeOwnerTrustJob *job2 = openpgp()->changeOwnerTrustJob();
         connect(job2, &ChangeOwnerTrustJob::result, this, [this](Error e)
         {
+            if (e) {
+                qDebug() <<  "Error in result: " << e.asString();
+            }
             Q_ASSERT(!e);
             Q_EMIT asyncDone();
         });