[PATCH 1/4] Mark divelist changed as we download dives from a dive computer

Linus Torvalds torvalds at linux-foundation.org
Sun Nov 18 10:14:15 PST 2012


From: Linus Torvalds <torvalds at linux-foundation.org>
Date: Sat, 17 Nov 2012 12:52:33 -0800
Subject: [PATCH 1/4] 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 at linux-foundation.org>
---

This is the first in a series of four patches that fix stupid problems I 
noticed while playing with subsurface on my most recent flight..

 libdivecomputer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libdivecomputer.c b/libdivecomputer.c
index f0c3c7549471..c4614812d62e 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;
 }
 
-- 
1.8.0



More information about the subsurface mailing list