diff --git a/kded/filetransferjob.cpp b/kded/filetransferjob.cpp index 7eb702afb..62d2f2e49 100644 --- a/kded/filetransferjob.cpp +++ b/kded/filetransferjob.cpp @@ -201,3 +201,13 @@ void FileTransferJob::sourceFinished() emitResult(); } +bool FileTransferJob::doKill() +{ + if (mDestinationJob) { + mDestinationJob->close(); + } + if (mOrigin) { + mOrigin->close(); + } + return true; +} diff --git a/kded/filetransferjob.h b/kded/filetransferjob.h index b71042250..2378fc3d3 100644 --- a/kded/filetransferjob.h +++ b/kded/filetransferjob.h @@ -50,6 +50,8 @@ public Q_SLOTS: void sourceFinished(); void openFinished(KJob*); +protected: + virtual bool doKill(); private: void startTransfer(); QSharedPointer mOrigin;