subsurface/map-widget
Berthold Stoeger b39f2406c6 Map: don't fully reset model on selection change
When changing the selection the MapLocationModel was reset.
This lead to crashes on Qt-5.9 which are due to QML accessing
data that was freed during model reset. This putative Qt bug
doesn't happen on newer Qt versions. At least Qt-5.12 is known
to work.

Instead of fighting the bug, let's simply not reset the model
but send a dataChanged() for every element of the MapLocationModel.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2019-09-06 11:48:47 -07:00
..
qml Map: generate pixmap name in model 2019-09-06 11:48:47 -07:00
qmlmapwidgethelper.cpp Map: don't fully reset model on selection change 2019-09-06 11:48:47 -07:00
qmlmapwidgethelper.h Map: don't fully reset model on selection change 2019-09-06 11:48:47 -07:00