Berthold Stoeger 3cdc2661d2 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>
2018-12-13 08:11:22 +01:00
..
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-07-26 16:32:51 +03:00
2018-09-11 17:25:00 -07:00