Set the deviceName from SharePlugin

This commit is contained in:
Àlex Fiestas 2014-03-03 21:11:32 +01:00
parent 39225d54d4
commit 39589434bd

View file

@ -91,6 +91,7 @@ bool SharePlugin::receivePackage(const NetworkPackage& np)
KUrl destination = destinationDir(); KUrl destination = destinationDir();
destination.addPath(filename); destination.addPath(filename);
FileTransferJob* job = np.createPayloadTransferJob(destination); FileTransferJob* job = np.createPayloadTransferJob(destination);
job->setDeviceName(device()->name());
connect(job, SIGNAL(result(KJob*)), this, SLOT(finished(KJob*))); connect(job, SIGNAL(result(KJob*)), this, SLOT(finished(KJob*)));
KIO::getJobTracker()->registerJob(job); KIO::getJobTracker()->registerJob(job);
job->start(); job->start();