PropagateUpload: Fix another non-normalized connect that appears while profiling

This commit is contained in:
Olivier Goffart 2017-09-25 11:58:30 +02:00
parent 2953eed729
commit ce04a76b17
3 changed files with 4 additions and 4 deletions

View file

@ -71,7 +71,7 @@ private:
bool _bandwidthLimited; // if _bandwidthQuota will be used
bool _choked; // if upload is paused (readData() will return 0)
friend class BandwidthManager;
protected slots:
public slots:
void slotJobUploadProgress(qint64 sent, qint64 t);
};

View file

@ -327,8 +327,8 @@ void PropagateUploadFileNG::startNextChunk()
connect(job, &PUTFileJob::finishedSignal, this, &PropagateUploadFileNG::slotPutFinished);
connect(job, &PUTFileJob::uploadProgress,
this, &PropagateUploadFileNG::slotUploadProgress);
connect(job, SIGNAL(uploadProgress(qint64, qint64)),
device, SLOT(slotJobUploadProgress(qint64, qint64)));
connect(job, &PUTFileJob::uploadProgress,
device, &UploadDevice::slotJobUploadProgress);
connect(job, &QObject::destroyed, this, &PropagateUploadFileCommon::slotJobDestroyed);
job->start();
propagator()->_activeJobList.append(this);

View file

@ -128,7 +128,7 @@ void PropagateUploadFileV1::startNextChunk()
_jobs.append(job);
connect(job, &PUTFileJob::finishedSignal, this, &PropagateUploadFileV1::slotPutFinished);
connect(job, &PUTFileJob::uploadProgress, this, &PropagateUploadFileV1::slotUploadProgress);
connect(job, SIGNAL(uploadProgress(qint64, qint64)), device, SLOT(slotJobUploadProgress(qint64, qint64)));
connect(job, &PUTFileJob::uploadProgress, device, &UploadDevice::slotJobUploadProgress);
connect(job, &QObject::destroyed, this, &PropagateUploadFileCommon::slotJobDestroyed);
job->start();
propagator()->_activeJobList.append(this);