diff options
Diffstat (limited to 'core/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 70917cf53..5ba445390 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -235,6 +235,10 @@ static void handle_event(struct divecomputer *dc, struct sample *sample, dc_samp name = QT_TRANSLATE_NOOP("gettextFromC", "invalid event number"); if (type < nr_events) name = events[type]; +#ifdef SAMPLE_EVENT_STRING + if (type == SAMPLE_EVENT_STRING) + name = value.event.name; +#endif time = value.event.time; if (sample) |