Fixed filetransferjob broken after adding icons.

The plasmoid didn't know the transfer ended.

REVIEW: 130116
This commit is contained in:
Nicolas Fella 2017-05-07 20:15:23 +02:00 committed by Albert Vaca
parent 4626df02fa
commit f0010763e7
2 changed files with 1 additions and 4 deletions

View file

@ -54,9 +54,6 @@ public:
QUrl destination() const { return mDestination; }
void setOriginName(const QString& from) { mFrom = from; }
Q_SIGNALS:
void emitResult();
private Q_SLOTS:
void doStart();

View file

@ -109,7 +109,7 @@ KNotification* Notification::createKNotification(bool update, const NetworkPacka
QUrl destinationUrl(mIconPath);
FileTransferJob* job = np.createPayloadTransferJob(destinationUrl);
job->start();
connect(job, &FileTransferJob::emitResult, this, &Notification::applyIconAndShow);
connect(job, &FileTransferJob::result, this, &Notification::applyIconAndShow);
}
}