diff --git a/core/backends/lan/compositeuploadjob.cpp b/core/backends/lan/compositeuploadjob.cpp index 58e590c07..c406b5f13 100644 --- a/core/backends/lan/compositeuploadjob.cpp +++ b/core/backends/lan/compositeuploadjob.cpp @@ -90,7 +90,7 @@ void CompositeUploadJob::startNextSubJob() m_currentJobSendPayloadSize = 0; emitDescription(m_currentJob->getNetworkPacket().get(QStringLiteral("filename"))); - connect(m_currentJob, QOverload::of(&UploadJob::processedAmount), this, &CompositeUploadJob::slotProcessedAmount); + connect(m_currentJob, &UploadJob::processedAmountChanged, this, &CompositeUploadJob::slotProcessedAmount); // Already done by KCompositeJob // connect(m_currentJob, &KJob::result, this, &CompositeUploadJob::slotResult); diff --git a/core/compositefiletransferjob.cpp b/core/compositefiletransferjob.cpp index 22fa9ab79..51792dff0 100644 --- a/core/compositefiletransferjob.cpp +++ b/core/compositefiletransferjob.cpp @@ -47,10 +47,7 @@ void CompositeFileTransferJob::startNextSubJob() {i18nc("The destination of a file operation", "Destination"), m_currentJob->destination().toDisplayString(QUrl::PreferLocalFile)}); m_currentJob->start(); - connect(m_currentJob, - QOverload::of(&FileTransferJob::processedAmount), - this, - &CompositeFileTransferJob::slotProcessedAmount); + connect(m_currentJob, &FileTransferJob::processedAmountChanged, this, &CompositeFileTransferJob::slotProcessedAmount); } bool CompositeFileTransferJob::addSubjob(KJob *job)