diff options
-rw-r--r-- | src/serialport/qserialportinfo_mac.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/serialport/qserialportinfo_mac.cpp b/src/serialport/qserialportinfo_mac.cpp index 44f26b5..1a751df 100644 --- a/src/serialport/qserialportinfo_mac.cpp +++ b/src/serialport/qserialportinfo_mac.cpp @@ -136,6 +136,14 @@ QList<QSerialPortInfo> QSerialPortInfo::availablePorts() CFSTR(kUSBProductString), kCFAllocatorDefault, 0); + if (!description) + description = + ::IORegistryEntrySearchCFProperty(entry, + kIOServicePlane, + CFSTR("BTName"), + kCFAllocatorDefault, + 0); + if (description) ++matchingPropertiesCounter; } |