summaryrefslogtreecommitdiff
path: root/examples/bluetooth/heartrate-game/connectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/heartrate-game/connectionhandler.cpp')
-rw-r--r--examples/bluetooth/heartrate-game/connectionhandler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/bluetooth/heartrate-game/connectionhandler.cpp b/examples/bluetooth/heartrate-game/connectionhandler.cpp
index 0b86ed5f..1394b057 100644
--- a/examples/bluetooth/heartrate-game/connectionhandler.cpp
+++ b/examples/bluetooth/heartrate-game/connectionhandler.cpp
@@ -65,6 +65,7 @@ void ConnectionHandler::initLocalDevice()
{
#if QT_CONFIG(permissions)
QBluetoothPermission permission{};
+ permission.setCommunicationModes(QBluetoothPermission::Access);
switch (qApp->checkPermission(permission)) {
case Qt::PermissionStatus::Undetermined:
qApp->requestPermission(permission, this, &ConnectionHandler::initLocalDevice);