mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <jan@casacondor.com>
This commit is contained in:
parent
599984d44a
commit
ed1264ce49
1 changed files with 7 additions and 0 deletions
|
@ -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<const dive_site *> 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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue