[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdeconnect-kde] kded/plugins/share: Add the FileTransferJob into the globalTracker
From:       Àlex_Fiestas <afiestas () kde ! org>
Date:       2014-03-03 20:15:58
Message-ID: E1WKZHK-0008AF-B8 () scm ! kde ! org
[Download RAW message or body]

Git commit 3b276855a0734b41a08bee702aa41834a2d9d78d by Àlex Fiestas.
Committed on 03/03/2014 at 20:03.
Pushed by afiestas into branch 'master'.

Add the FileTransferJob into the globalTracker

M  +2    -0    kded/plugins/share/shareplugin.cpp

http://commits.kde.org/kdeconnect-kde/3b276855a0734b41a08bee702aa41834a2d9d78d

diff --git a/kded/plugins/share/shareplugin.cpp b/kded/plugins/share/shareplugin.cpp
index affb0fc..351da76 100644
--- a/kded/plugins/share/shareplugin.cpp
+++ b/kded/plugins/share/shareplugin.cpp
@@ -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");

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic