subsurface/mobile-widgets
Lubomir I. Ivanov 98e869d4f1 mapwidgethelper: fix wrong logic in selectVisibleLocations()
Looking for already existing locations with
m_mapLocationModel->getMapLocationForUuid() will not cover dive
sites which are too close to each other and are skipped when
creating MapLocations. See reloadMapLocations() and the usage of
MIN_DISTANCE_BETWEEN_DIVE_SITES_M.

Constructing a new QGeoCoordinate for the already retrieved
dive site (ds) coordinates ensures that we are traversing
*all* dive sites at the backend and not only those visible on the map.

Fixes the issue where not all dives in the DiveList are selected,
even if a dive clearly happened on a location currently visible in
the map viewport (map -> context menu -> select visible dive
locations).

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-08-10 09:08:28 -07:00
..
qml mapwidget.qml: more improvements for the dynamic zoom-in/out 2017-08-10 09:08:28 -07:00
qmlmanager.cpp QML UI: enable modification of ratings 2017-08-02 18:49:47 -07:00
qmlmanager.h QML UI: enable modification of ratings 2017-08-02 18:49:47 -07:00
qmlmapwidgethelper.cpp mapwidgethelper: fix wrong logic in selectVisibleLocations() 2017-08-10 09:08:28 -07:00
qmlmapwidgethelper.h mapwidgethelper: add the selectVisibleLocations() method 2017-08-07 00:51:21 -07:00
qmlprofile.cpp QML UI: adjust to modified logging API 2017-06-11 13:55:41 -07:00
qmlprofile.h Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00