summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-10-02 17:18:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-02 09:52:33 -0700
commit32e6ca49192a010b2c18d27a5eb5e9214bd4c098 (patch)
tree4da7e88c1b7118cb24e7bf51cf8abcf12b690ef5 /core/parse-xml.c
parentcabf8c0c214b9bb8411797ec2da40b38315b6ce0 (diff)
downloadsubsurface-32e6ca49192a010b2c18d27a5eb5e9214bd4c098.tar.gz
[Divesite] Save / Load the country from xml
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index ea3cbed93..27b7b484f 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -1506,6 +1506,8 @@ static void try_to_fill_dive_site(struct dive_site **ds_p, const char *name, cha
return;
if (MATCH("name", utf8_string, &ds->name))
return;
+ if (MATCH("country", utf8_string, &ds->country))
+ return;
if (MATCH("description", utf8_string, &ds->description))
return;
if (MATCH("notes", utf8_string, &ds->notes))
@@ -3681,10 +3683,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
case 3: /* diver error */
case 4: /* internal error */
case 5: /* device activity log */
- //Event 18 is a button press. Lets ingore that event.
+ //Event 18 is a button press. Lets ingore that event.
if (ptr[4] == 18)
continue;
-
+
event_start();
cur_event.time.seconds = time;
switch (ptr[4]) {
@@ -3795,7 +3797,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
break;
case 18:
// key pressed - It should never get in here
- // as we ingored it at the parent 'case 5'.
+ // as we ingored it at the parent 'case 5'.
break;
case 19:
// obsolete