summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/btdiscovery.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 731c4ca4f..ffa2a26f0 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -46,7 +46,7 @@ static dc_descriptor_t *getDeviceType(QString btName)
}
if (!vendor.isEmpty() && !product.isEmpty())
- return(descriptorLookup[vendor + product]);
+ return(descriptorLookup.value(vendor + product));
return(NULL);
}