diff options
Diffstat (limited to 'bluetooth/bluetoothmodel.cpp')
-rw-r--r-- | bluetooth/bluetoothmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bluetooth/bluetoothmodel.cpp b/bluetooth/bluetoothmodel.cpp index f6c3d09..294b50b 100644 --- a/bluetooth/bluetoothmodel.cpp +++ b/bluetooth/bluetoothmodel.cpp @@ -156,6 +156,9 @@ BluetoothDevice *BluetoothModel::updateDeviceProperties(BluetoothDevice *device, bool paired = properties.value("paired").toBool(); bool connected = properties.value("connected").toBool(); + if (id.isEmpty()) + return nullptr; + if (device == nullptr) return new BluetoothDevice(id, address, name, paired, connected); |