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:
parent
b830c8f33b
commit
5da0ae7903
1 changed files with 1 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue