summaryrefslogtreecommitdiffstats
path: root/qt-models/maplocationmodel.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-11-14 19:21:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-03 13:26:55 -0800
commit5a8db978198682734cdecc69a480d21a16775d4a (patch)
tree21ec80d98c7f063e2cd8fc24075dab9f933c91b3 /qt-models/maplocationmodel.cpp
parent057c151fe8592ec5f160ae5f7891c1f1b5c998dc (diff)
downloadsubsurface-5a8db978198682734cdecc69a480d21a16775d4a.tar.gz
build-system: add models and shared backends to the downloader
We'll need this in order to be able to actually open dive files and download things from a dive computer. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/maplocationmodel.cpp')
-rw-r--r--qt-models/maplocationmodel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp
index c123b19c5..b92d1385e 100644
--- a/qt-models/maplocationmodel.cpp
+++ b/qt-models/maplocationmodel.cpp
@@ -3,7 +3,7 @@
#include "divelocationmodel.h"
#include "core/divesite.h"
#include "core/divefilter.h"
-#ifndef SUBSURFACE_MOBILE
+#if !defined(SUBSURFACE_MOBILE) && !defined(SUBSURFACE_DOWNLOADER)
#include "qt-models/filtermodels.h"
#include "desktop-widgets/mapwidget.h"
#endif
@@ -20,7 +20,7 @@ MapLocation::MapLocation(struct dive_site *dsIn, QGeoCoordinate coordIn, QString
// Simplify this!
static bool inEditMode()
{
-#ifdef SUBSURFACE_MOBILE
+#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
return false;
#else
return MapWidget::instance()->editMode();
@@ -127,7 +127,7 @@ void MapLocationModel::reload(QObject *map)
QMap<QString, MapLocation *> locationNameMap;
-#ifdef SUBSURFACE_MOBILE
+#if defined(SUBSURFACE_MOBILE) || defined(SUBSURFACE_DOWNLOADER)
bool diveSiteMode = false;
#else
// In dive site mode (that is when either editing a dive site or on