From 7b155774c5105f84303e869317fc946b11b3e78b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 7 Jan 2016 22:43:13 -0800 Subject: Compile fix This makes the desktop version compile again. Signed-off-by: Dirk Hohndel --- subsurface-core/gpslocation.cpp | 2 ++ subsurface-core/gpslocation.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'subsurface-core') 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(); }; -- cgit v1.2.3-70-g09d2