diff options
author | Michael Zanetti <michael.zanetti@nokia.com> | 2012-03-24 15:22:58 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-13 13:17:16 +0200 |
commit | c1bce4000d0f2ae5ef1c26f4b38cb1f61fee690c (patch) | |
tree | d96d0d917c290da48880717fc76457bddab870b7 /src/bluetooth/qbluetoothtransferreply_bluez.cpp | |
parent | 7332a692439589370168b6e96dc19e21b6fe4d1d (diff) |
don't use always the same id for failed transfers.
Change-Id: I563cbbfdeb936f9e2b30d94db52f9f6d5b4baeda
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/bluetooth/qbluetoothtransferreply_bluez.cpp')
-rw-r--r-- | src/bluetooth/qbluetoothtransferreply_bluez.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bluetooth/qbluetoothtransferreply_bluez.cpp b/src/bluetooth/qbluetoothtransferreply_bluez.cpp index f5db9500..e113e5b6 100644 --- a/src/bluetooth/qbluetoothtransferreply_bluez.cpp +++ b/src/bluetooth/qbluetoothtransferreply_bluez.cpp @@ -175,8 +175,9 @@ void QBluetoothTransferReplyBluez::sendReturned(QDBusPendingCallWatcher *watcher #ifdef NOKIA_BT_SERVICES // Inform the service daemon that an outgoing transfer has failed (use a fake transfer ID as there is no real one yet) QFile *file = qobject_cast<QFile *>(source); - nokiaBtServiceInstance()->outgoingFile("/transfer9999", address.toString(), file->fileName(), QBluetoothTransferReply::attribute(QBluetoothTransferRequest::TypeAttribute).toString(), m_size); - nokiaBtServiceInstance()->setTransferFinished("/transfer9999", false); + QString tempId = QUuid::createUuid().toString(); + nokiaBtServiceInstance()->outgoingFile("/transfer" + tempId, address.toString(), file->fileName(), QBluetoothTransferReply::attribute(QBluetoothTransferRequest::TypeAttribute).toString(), m_size); + nokiaBtServiceInstance()->setTransferFinished("/transfer" + tempId, false); #endif // allow time for the developer to connect to the signal |