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
This commit is contained in:
Ingo Klöcker 2020-11-18 12:43:45 +01:00
parent 223779dfde
commit 3c185c2159

View File

@ -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());
}