qt: Allow adding empty remarks

* lang/qt/src/qgpgmesignkeyjob.cpp (sign_key): Allow empty
remarks.
This commit is contained in:
Andre Heinecke 2019-11-01 12:05:47 +01:00
parent 174caaa6f5
commit d61491dd25
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

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