diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 98418ecf2..66866906a 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -38,6 +38,11 @@ FileTransferJob::FileTransferJob(const QSharedPointer& origin, qint64 , mSize(size) , mWritten(0) { + if (mDestination.scheme().isEmpty()) { + qWarning() << "Destination QUrl" << mDestination << "lacks a scheme. Setting its scheme to 'file'."; + mDestination.setScheme("file"); + } + Q_ASSERT(destination.isLocalFile()); setCapabilities(Killable); qCDebug(KDECONNECT_CORE) << "FileTransferJob Downloading payload to" << destination;