diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-12-11 22:30:57 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-12-13 08:11:22 +0100 |
commit | 3cdc2661d2a2417e557042abe1a0d9e5107822eb (patch) | |
tree | 1862bc03bac773087093663e76372b72fc08603f /tests/testqPrefUnits.h | |
parent | 09a9fa1ae51bbca3246fb256f5acc2ace0b2b148 (diff) | |
download | subsurface-3cdc2661d2a2417e557042abe1a0d9e5107822eb.tar.gz |
Dive media: add media to closest dive
Currently, when selecting "Load media files even if time does not
match the dive time", the media are added to *all* selected dives.
Instead add it to the closest dive.
This seems like the less surprising behavior. Of course now if the
user really wants to add a media file to multiple dives, they will
have to do it manually.
To avoid a messy interface, this is solved by moving the iterate-
over-selected-dives loop to the core. Thus, a helper-function can
be made local to its translation unit.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests/testqPrefUnits.h')
0 files changed, 0 insertions, 0 deletions