Don't cache the QBluetoothSocket::localName() & peerName()
authorAlex Blasche <alexander.blasche@digia.com>
Mon, 27 Jan 2014 16:36:14 +0000 (17:36 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 29 Jan 2014 07:55:23 +0000 (08:55 +0100)
commit7f6c59623c535fcd2075464e3870e9897c3f5f2b
tree66ad2be5690e2e3366592e586566626616654b7e
parentd85171d34a28e53d416609fb0e60129f570463cf
Don't cache the QBluetoothSocket::localName() & peerName()

This affects Bluez only. The other platforms don't use this feature.
The problem was triggered when connecting, disconnecting and connecting
again to another device. localName() might change due to a different
local Bluetooth adapter being used and peerName() is different anyway
in such cases.

Change-Id: I8983a355832cf4f4d9a654971c54f5624be288e6
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
src/bluetooth/qbluetoothsocket_bluez.cpp
src/bluetooth/qbluetoothsocket_p.h
src/bluetooth/qbluetoothsocket_qnx.cpp