summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-11-17 12:52:33 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-19 12:01:54 -0800
commit804b22dcd9dd5beb316640997fa559929fdb5d2a (patch)
tree2ffec5b452b26e6f552aab40fa55833d3233dd38 /libdivecomputer.c
parenta154d1ccdc107a052a602afa6f0486f4c5005efc (diff)
downloadsubsurface-804b22dcd9dd5beb316640997fa559929fdb5d2a.tar.gz
Mark divelist changed as we download dives from a dive computer
"record_dive()" won't do that, since otherwise we'd mark the dive list changed when we load it from an XML file. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index f0c3c7549..c4614812d 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -316,6 +316,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
dive->downloaded = TRUE;
record_dive(dive);
+ mark_divelist_changed(TRUE);
return 1;
}