Set total amount of files

Ensures the progress dialog can show the total number of files
and offer additional actions for when a single file was copied.
This commit is contained in:
Kai Uwe Broulik 2019-12-19 15:58:05 +01:00
parent b830c8f33b
commit 5da0ae7903

View file

@ -77,6 +77,7 @@ bool CompositeFileTransferJob::addSubjob(KJob* job)
if (np->has(QStringLiteral("numberOfFiles"))) {
m_totalJobs = np->get<int>(QStringLiteral("numberOfFiles"));
setTotalAmount(Files, m_totalJobs);
}
QString filename = np->get<QString>(QStringLiteral("filename"));