mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile/gps: make sure updated GPS data are saved
If we change the gps location of a dive that didn't have a dive site associated before (which is the normal case when a dive was just downloaded from a dive computer), a new dive site is created with that GPS fix and added to the dive. We need to mark that dive as changed in order for the changes to be saved to storage. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
619de80dfd
commit
9245962d3d
2 changed files with 2 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
Mobile: fix saving newly applied GPS fixes to storage
|
||||
Desktop: add starts-with and exact filter modes for textual search
|
||||
Mobile: add option to only show one column in portrait mode
|
||||
Mobile: fix potential crash when adding / editing dives
|
||||
|
|
|
@ -225,6 +225,7 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d)
|
|||
#define SET_LOCATION(_dive, _gpsfix, _mark) \
|
||||
{ \
|
||||
copy_gps_location(_gpsfix, _dive); \
|
||||
invalidate_dive_cache(_dive); \
|
||||
changed++; \
|
||||
last = _mark; \
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue