From 0a71599a048f3b17b0557118dfd0e309358a403f Mon Sep 17 00:00:00 2001 From: Peter Petrik Date: Wed, 9 Oct 2019 15:50:34 +0200 Subject: [PATCH] [ios] [qgsquick] fix crash of GPS widget on iOS, see input issue 470 --- src/quickgui/qgsquickpositionkit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quickgui/qgsquickpositionkit.cpp b/src/quickgui/qgsquickpositionkit.cpp index 5e91117c386..013c4d00fac 100644 --- a/src/quickgui/qgsquickpositionkit.cpp +++ b/src/quickgui/qgsquickpositionkit.cpp @@ -221,9 +221,9 @@ void QgsQuickPositionKit::onSimulatePositionLongLatRadChanged( QVector s QgsDebugMsg( QStringLiteral( "Use simulated position around longlat: %1, %2, %3" ).arg( longitude ).arg( latitude ).arg( radius ) ); useSimulatedLocation( longitude, latitude, radius ); } - else + else if ( mIsSimulated ) { - QgsDebugMsg( QStringLiteral( "Unable to set simulated position due to the input errors." ) ); + QgsDebugMsg( QStringLiteral( "Switching from simulated to GPS location" ) ); useGpsLocation(); } }