summaryrefslogtreecommitdiffstats
path: root/map-widget/qml
diff options
context:
space:
mode:
Diffstat (limited to 'map-widget/qml')
-rw-r--r--map-widget/qml/MapWidget.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/map-widget/qml/MapWidget.qml b/map-widget/qml/MapWidget.qml
index 602b7c338..42fc0ab88 100644
--- a/map-widget/qml/MapWidget.qml
+++ b/map-widget/qml/MapWidget.qml
@@ -69,8 +69,10 @@ Item {
drag.target: (mapHelper.editMode && mapHelper.model.isSelected(model.divesite)) ? mapItem : undefined
anchors.fill: parent
onClicked: {
- if (!mapHelper.editMode && model.divesite)
- mapHelper.model.setSelected(model.divesite, true)
+ if (!mapHelper.editMode && model.divesite) {
+ mapHelper.model.setSelected(model.divesite)
+ mapHelper.selectedLocationChanged(model.divesite)
+ }
}
onDoubleClicked: map.doubleClickHandler(mapItem.coordinate)
onReleased: {