Add the FileTransferJob into the globalTracker

This commit is contained in:
Àlex Fiestas 2014-03-03 21:03:56 +01:00
parent f4dce72d41
commit 3b276855a0

View file

@ -26,6 +26,7 @@
#include <KStandardDirs>
#include <KSharedConfig>
#include <KConfigGroup>
#include <KJobTrackerInterface>
#include <qprocess.h>
#include <QDir>
@ -91,6 +92,7 @@ bool SharePlugin::receivePackage(const NetworkPackage& np)
destination.addPath(filename);
FileTransferJob* job = np.createPayloadTransferJob(destination);
connect(job, SIGNAL(result(KJob*)), this, SLOT(finished(KJob*)));
KIO::getJobTracker()->registerJob(job);
job->start();
} else if (np.has("text")) {
QString text = np.get<QString>("text");