mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
GpsLocation::clearGpsData() is only used in SUBSURFACE_MOBILE
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
53221ffd8e
commit
0bb1a82127
2 changed files with 4 additions and 0 deletions
|
@ -446,12 +446,14 @@ void GpsLocation::deleteGpsFix(qint64 when)
|
|||
m_deletedTrackers.append(deletedTracker);
|
||||
}
|
||||
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
void GpsLocation::clearGpsData()
|
||||
{
|
||||
m_trackers.clear();
|
||||
geoSettings->clear();
|
||||
geoSettings->sync();
|
||||
}
|
||||
#endif
|
||||
|
||||
void GpsLocation::postError(QNetworkReply::NetworkError error)
|
||||
{
|
||||
|
|
|
@ -69,7 +69,9 @@ public slots:
|
|||
void downloadFromServer();
|
||||
void postError(QNetworkReply::NetworkError error);
|
||||
void getUseridError(QNetworkReply::NetworkError error);
|
||||
#ifdef SUBSURFACE_MOBILE
|
||||
void clearGpsData();
|
||||
#endif
|
||||
void deleteGpsFix(qint64 when);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue