diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2011-10-05 11:36:15 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2011-10-05 13:36:17 -0700 |
commit | dbdd42b31f73ad8e8117d5b2a5b4ac4e061bf202 (patch) | |
tree | a569978161130384e345853a45624aeb2922d4df /dive.h | |
parent | c785ceaf4cb4032dafb832d27caba419d5be1adc (diff) | |
download | subsurface-dbdd42b31f73ad8e8117d5b2a5b4ac4e061bf202.tar.gz |
Add XML file import back and treat open and import differently
Open (or adding a file name on the command line) means that this is just
one of the files that you consider part of your dive history. So dives
don't get automagically numbered and the dive_list is not considered
"changed" just because another file was opened.
Import (or adding a file on the command line after --import) means that
you are importing the content of this file to your dive history. So if the
imported file has un-numbered dives that are newer than everything else,
those get correctly renumbered. And importing marks the dive_list as
changed.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -243,7 +243,7 @@ extern void record_dive(struct dive *dive); extern struct sample *prepare_sample(struct dive **divep); extern void finish_sample(struct dive *dive, struct sample *sample); -extern void report_dives(void); +extern void report_dives(gboolean imported); extern struct dive *fixup_dive(struct dive *dive); extern struct dive *try_to_merge(struct dive *a, struct dive *b); |