Use deviceClass.displayName to generate a device name if the user doesn't give one
This commit is contained in:
parent
14bc0eb73e
commit
0c7a810366
@ -588,7 +588,7 @@ DevicePairingInfo *DeviceManagerImplementation::confirmPairing(const PairingTran
|
|||||||
if (addNewDevice) {
|
if (addNewDevice) {
|
||||||
device = new Device(plugin, deviceClass, internalInfo->deviceId(), this);
|
device = new Device(plugin, deviceClass, internalInfo->deviceId(), this);
|
||||||
if (internalInfo->deviceName().isEmpty()) {
|
if (internalInfo->deviceName().isEmpty()) {
|
||||||
device->setName(deviceClass.name());
|
device->setName(deviceClass.displayName());
|
||||||
} else {
|
} else {
|
||||||
device->setName(internalInfo->deviceName());
|
device->setName(internalInfo->deviceName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user