From 3c185c2159cdcc23f44773fe1cfb624b27598c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Wed, 18 Nov 2020 12:43:45 +0100 Subject: [PATCH] qt: Avoid empty "rem@gnupg.org" signature notations * lang/qt/src/qgpgmesignkeyjob.cpp (sign_key): Check remark for being an empty string instead of a null QString. -- GnuPG-bug-id: 5142 Co-authored-by: Daniel Kahn Gillmor --- 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 1d36d95a..ee0c5379 100644 --- a/lang/qt/src/qgpgmesignkeyjob.cpp +++ b/lang/qt/src/qgpgmesignkeyjob.cpp @@ -83,7 +83,7 @@ static QGpgMESignKeyJob::result_type sign_key(Context *ctx, const Key &key, cons skei->setDupeOk(true); } - if (!remark.isNull()) { + if (!remark.isEmpty()) { ctx->addSignatureNotation("rem@gnupg.org", remark.toUtf8().constData()); }