QtPositioning: fix provider disabled notifications


When starting the location updates, we register the same location
listener for multiple location providers (GPS & network). As a result,
the onProviderDisabled() callback is called multiple times, and we
might report too many "Closed" errors.
This patch fixes the logic by introducing an additional flag to track
that the native C++ callback was already invoked.

Drive-by: fix some code formatting.

Pick-to: 6.2
Change-Id: Ie8e93ae77eb1c9cf9044bf3a35b22c37e9f2a8aa
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
commit6015afc28d828466c8fc9f783ff9ac63f7579e71
parent6ca90ba2f8b654c21768ffd7311a3d32396a674b
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 14 Jul 2021 14:58:05 +0200