From ed1264ce491dc6c9f32d87ef854363a98a0a2f35 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 28 Nov 2019 16:04:00 +0100 Subject: core: add dive_site export for mobile in Exportfuncs DiveFilter is not available in Mobile, so another solution is needed. Use "for_each_dive_site" to loop over dive sites instead. Signed-off-by: Jan Iversen --- core/exportfuncs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/exportfuncs.cpp') diff --git a/core/exportfuncs.cpp b/core/exportfuncs.cpp index e05cdcb33..839c0bf1d 100644 --- a/core/exportfuncs.cpp +++ b/core/exportfuncs.cpp @@ -8,6 +8,7 @@ #include "core/file.h" #include "core/errorhelper.h" #include "core/divefilter.h" +#include "core/divesite.h" #include "exportfuncs.h" @@ -300,6 +301,12 @@ std::vector exportFuncs::getDiveSitesToExport(bool selectedOn continue; res.push_back(ds); } +#else + /* walk the dive site list */ + int i; + const struct dive_site *ds; + for_each_dive_site (i, ds, &dive_site_table) + res.push_back(get_dive_site(i, &dive_site_table)); #endif return res; } -- cgit v1.2.3-70-g09d2