From 577da54454e83e448b3a9ba912b4ba58fa64d3ab Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 13 Nov 2015 17:20:45 -0800 Subject: Location service: add ability to delete all stored GPS fixes This may need an "are you sure" confirmation dialog... Signed-off-by: Dirk Hohndel --- qt-mobile/gpslocation.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'qt-mobile/gpslocation.cpp') diff --git a/qt-mobile/gpslocation.cpp b/qt-mobile/gpslocation.cpp index 3139a4315..f2bde130d 100644 --- a/qt-mobile/gpslocation.cpp +++ b/qt-mobile/gpslocation.cpp @@ -209,3 +209,9 @@ bool GpsLocation::applyLocations() } } } + +void GpsLocation::clearGpsData() +{ + geoSettings->clear(); + geoSettings->sync(); +} -- cgit v1.2.3-70-g09d2