aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-10-31 23:06:38 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 14:58:57 -0700
commitd4d59dadcf13d7a08db11eec2882f2ff02637ce2 (patch)
tree4c2c2593f4307afa7ab77e881140d704ce5aad0f /file.c
parent64f816b472a66750ec7e14bf46aa7f8bfb724c20 (diff)
downloadsubsurface-d4d59dadcf13d7a08db11eec2882f2ff02637ce2.tar.gz
Add .txt to notes on MK6 import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/file.c b/file.c
index ad5b0354d..c22f29f91 100644
--- a/file.c
+++ b/file.c
@@ -487,6 +487,9 @@ int parse_txt_file(const char *filename, const char *csv)
dive->cylinder[cur_cylinder_index].gasmix.he.permille = he * 10;
cur_cylinder_index++;
+ lineptr = strstr(memtxt.buffer, "Dive started at");
+ if (lineptr)
+ dive->notes = strdup(lineptr);
dc = &dive->dc;
/*