diff options
-rw-r--r-- | subsurface-core/gpslocation.cpp | 2 | ||||
-rw-r--r-- | subsurface-core/gpslocation.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index b4f5b887c..59cd97900 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -327,6 +327,7 @@ void GpsLocation::applyLocations() mark_divelist_changed(true); } +#ifdef SUBSURFACE_MOBILE void GpsLocation::updateModel() { GpsListModel *gpsListModel = GpsListModel::instance(); @@ -352,6 +353,7 @@ void GpsLocation::updateModel() } qDebug() << "added" << cnt << "gps fixes to model"; } +#endif void GpsLocation::clearGpsData() { diff --git a/subsurface-core/gpslocation.h b/subsurface-core/gpslocation.h index 3dbe48320..2a6f6c292 100644 --- a/subsurface-core/gpslocation.h +++ b/subsurface-core/gpslocation.h @@ -49,7 +49,9 @@ public slots: void downloadFromServer(); void postError(QNetworkReply::NetworkError error); void getUseridError(QNetworkReply::NetworkError error); +#ifdef SUBSURFACE_MOBILE void updateModel(); +#endif void clearGpsData(); }; |