subsurface/mobile-widgets
Lubomir I. Ivanov 9367610220 mapwidget: add the 'isReady' flag to the Map component
The 'isReady' boolean flag is now set to 'true' only
once the Component.onCompleted slot is reached.

The flag is then used as a safe-guard in the
onZoomLevelChanged slot. Calculate the small circle radius
(mapHelper.calculateSmallCircleRadius()) only if 'isReady'
is set to true.

Prevents a crash if the Map widget is not ready, yet a zoom
level is set via the 'zoomLevel' property. The crash happens
because mapHelper.calculateSmallCircleRadius() has a callback
to the Map component to estimate some points and distances of the
small circle.

Reported-by: Stefan Fuchs <sfuchs@gmx.de>
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-29 08:26:11 +01:00
..
qml mapwidget: add the 'isReady' flag to the Map component 2017-10-29 08:26:11 +01:00
qmlmanager.cpp mobile: fix initial setup with no repo or meta info 2017-10-17 14:29:17 +02:00
qmlmanager.h mobile: No cloud repo creation more explicit 2017-10-17 14:29:17 +02:00
qmlmapwidgethelper.cpp Use lrint() for all degrees_t related rounding 2017-10-09 13:38:58 +03:00
qmlmapwidgethelper.h mapwidgethelper: use dynamic creation of the Plugin object 2017-08-24 13:11:39 -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