diff --git a/src/core/positioning/internalgnssreceiver.cpp b/src/core/positioning/internalgnssreceiver.cpp index c7413af275..b99e372bb9 100644 --- a/src/core/positioning/internalgnssreceiver.cpp +++ b/src/core/positioning/internalgnssreceiver.cpp @@ -104,7 +104,7 @@ void InternalGnssReceiver::handleConnectDevice() Qt::PermissionStatus permissionStatus = qApp->checkPermission( locationPermission ); if ( permissionStatus == Qt::PermissionStatus::Undetermined ) { - qApp->requestPermission( locationPermission, [=]( const QPermission &permission ) { + qApp->requestPermission( locationPermission, this, [=]( const QPermission &permission ) { if ( permission.status() == Qt::PermissionStatus::Granted ) { mPermissionChecked = true;