From 72de06417e32bd6573acd0b73a72fcf98232fe81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 17 Jun 2021 09:41:22 +0200 Subject: [PATCH] qt: Add some error logging * lang/qt/src/qgpgmenewcryptoconfig.cpp (setURLValueList): Log error if setting config value failed. -- GnuPG-bug-id: 5465 --- lang/qt/src/qgpgmenewcryptoconfig.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lang/qt/src/qgpgmenewcryptoconfig.cpp b/lang/qt/src/qgpgmenewcryptoconfig.cpp index d2598809..5eb15efe 100644 --- a/lang/qt/src/qgpgmenewcryptoconfig.cpp +++ b/lang/qt/src/qgpgmenewcryptoconfig.cpp @@ -46,7 +46,7 @@ #include "global.h" #include "error.h" - +#include "debug.h" #include #include @@ -698,7 +698,10 @@ void QGpgMENewCryptoConfigEntry::setURLValueList(const QList &urls) } else { values.push_back(splitURL(type, url).toUtf8().constData()); } - m_option.setNewValue(m_option.createStringListArgument(values)); + const auto err = m_option.setNewValue(m_option.createStringListArgument(values)); + if (err) { + qCWarning(QGPGME_LOG) << "setURLValueList: failed to set new value:" << err; + } } bool QGpgMENewCryptoConfigEntry::isDirty() const