diff options
author | Ingo Klöcker <[email protected]> | 2020-11-18 11:43:45 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2020-11-18 11:43:45 +0000 |
commit | 3c185c2159cdcc23f44773fe1cfb624b27598c80 (patch) | |
tree | 57b17a76b1c792670837d6932a3f6e99705d28fd | |
parent | build: Update with newer autoconf constructs. (diff) | |
download | gpgme-3c185c2159cdcc23f44773fe1cfb624b27598c80.tar.gz gpgme-3c185c2159cdcc23f44773fe1cfb624b27598c80.zip |
qt: Avoid empty "[email protected]" 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
-rw-r--r-- | lang/qt/src/qgpgmesignkeyjob.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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("[email protected]", remark.toUtf8().constData()); } |