diff --git a/core/backends/bluetooth/bluetoothdownloadjob.cpp b/core/backends/bluetooth/bluetoothdownloadjob.cpp --- a/core/backends/bluetooth/bluetoothdownloadjob.cpp +++ b/core/backends/bluetooth/bluetoothdownloadjob.cpp @@ -35,6 +35,7 @@ void BluetoothDownloadJob::start() { - connect(mSocket.data(), SIGNAL(disconnected()), this, SLOT(deleteLater())); + connect(mSocket.data(), &QBluetoothSocket::disconnected, mSocket.data(), &QBluetoothSocket::readyRead); + connect(mSocket.data(), &QBluetoothSocket::disconnected, mSocket.data(), &QBluetoothSocket::readChannelFinished); mSocket->connectToService(mRemoteAddress, mTransferUuid, QIODevice::ReadOnly); } diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -40,7 +40,8 @@ , m_size(size) { Q_ASSERT(m_origin); - Q_ASSERT(m_origin->isReadable()); + //Disabled this assert: QBluetoothSocket doesn't report "->isReadable() == true" until it's connected + //Q_ASSERT(m_origin->isReadable()); if (m_destination.scheme().isEmpty()) { qCWarning(KDECONNECT_CORE) << "Destination QUrl" << m_destination << "lacks a scheme. Setting its scheme to 'file'."; m_destination.setScheme(QStringLiteral("file"));