Commit 32439e4d authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix percentage progress in batch extractions

The new BatchExtractJob needs to forward the progress() signal (emitted
when the underlying ExtractJob runs) to its own onProgress() slot. This
works because the archiveInterface() instance is the same for both jobs.
parent decfd47d
......@@ -356,6 +356,8 @@ BatchExtractJob::BatchExtractJob(LoadJob *loadJob, const QString &destination, b
void BatchExtractJob::doWork()
connect(m_loadJob, &KJob::result, this, &BatchExtractJob::slotLoadingFinished);
// progress() will be actually emitted by the ExtractJob, but the archiveInterface() is the same.
connect(archiveInterface(), &ReadOnlyArchiveInterface::progress, this, &BatchExtractJob::onProgress);
// Forward LoadJob's signals.
connect(m_loadJob, &Kerfuffle::Job::newEntry, this, &BatchExtractJob::newEntry);
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