diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-07 22:43:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-07 22:43:13 -0800 |
commit | 7b155774c5105f84303e869317fc946b11b3e78b (patch) | |
tree | 7e4372ba2248a8d83204059a12116b03b6d9efd0 /subsurface-core | |
parent | 6c0259d5409a72163a53cdce5658183c16b97f5c (diff) | |
download | subsurface-7b155774c5105f84303e869317fc946b11b3e78b.tar.gz |
Compile fix
This makes the desktop version compile again.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core')
-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(); }; |