qt: Handle cancel in changeexpiryjob
* lang/qt/src/qgpgmechangeexpiryjob.cpp (change_expiry): Return cancel error. -- The classical "cancel is not an error" problem. GnuPG-Bug-Id: T6754
This commit is contained in:
parent
5c7e4d252a
commit
ab25df8328
@ -103,7 +103,7 @@ static QGpgMEChangeExpiryJob::result_type change_expiry(Context *ctx, const Key
|
||||
if (subkeys.empty() || (options & ChangeExpiryJob::UpdatePrimaryKey)) {
|
||||
// update the expiration date of the primary key
|
||||
auto err = ctx->setExpire(key, expires);
|
||||
if (err) {
|
||||
if (err || err.isCanceled()) {
|
||||
return std::make_tuple(err, QString(), Error());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user