diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-09-11 11:31:02 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-11 09:18:55 -0700 |
commit | 654a7be834189ced04c26904026c2710438b23df (patch) | |
tree | 6e6ccfeec89179cb0f6212fbf1d94034bac26d45 /dive.c | |
parent | 5a1c041b78fa8fe74b6c2eee26416d287032d61f (diff) | |
download | subsurface-654a7be834189ced04c26904026c2710438b23df.tar.gz |
Add checkbox to force images to match dives
Give the user the possibility to attach images to a dive even
when the times do not match
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2989,12 +2989,12 @@ bool picture_check_valid(char *filename, int shift_time) return false; } -void dive_create_picture(struct dive *dive, char *filename, int shift_time) +void dive_create_picture(struct dive *dive, char *filename, int shift_time, bool match_all) { timestamp_t timestamp = picture_get_timestamp(filename); if (!new_picture_for_dive(dive, filename)) return; - if (!dive_check_picture_time(dive, shift_time, timestamp)) + if (!match_all && !dive_check_picture_time(dive, shift_time, timestamp)) return; struct picture *picture = alloc_picture(); |