Unverified Commit db2bd79d authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Capture this for QObject call

An older GCC / MinGW from debian buster bails out otherwise.
parent 52c40ed0
Pipeline #135236 passed with stage
in 1 minute and 47 seconds
......@@ -849,7 +849,7 @@ void ImportCertificatesCommand::doCancel()
std::for_each(std::cbegin(d->jobs), std::cend(d->jobs),
[this](const auto &job) {
std::for_each(std::cbegin(job.connections), std::cend(job.connections),
[](const auto &connection) { QObject::disconnect(connection); });
[this](const auto &connection) { QObject::disconnect(connection); });
job.job->slotCancel();
d->importResult(ImportResult{Error::fromCode(GPG_ERR_CANCELED)}, job.job);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment