From d61491dd25d86a2bee54e4be29b715d97840be67 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 1 Nov 2019 12:05:47 +0100 Subject: [PATCH] qt: Allow adding empty remarks * lang/qt/src/qgpgmesignkeyjob.cpp (sign_key): Allow empty remarks. --- lang/qt/src/qgpgmesignkeyjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/qt/src/qgpgmesignkeyjob.cpp b/lang/qt/src/qgpgmesignkeyjob.cpp index 7f79cb56..7cd10eb5 100644 --- a/lang/qt/src/qgpgmesignkeyjob.cpp +++ b/lang/qt/src/qgpgmesignkeyjob.cpp @@ -82,7 +82,7 @@ static QGpgMESignKeyJob::result_type sign_key(Context *ctx, const Key &key, cons skei->setDupeOk(true); } - if (!remark.isEmpty()) { + if (!remark.isNull()) { ctx->addSignatureNotation("rem@gnupg.org", remark.toUtf8().constData()); }