diff --git a/app/qml/layers/MMFeaturesListPage.qml b/app/qml/layers/MMFeaturesListPage.qml index 41c5012c8..13042e795 100644 --- a/app/qml/layers/MMFeaturesListPage.qml +++ b/app/qml/layers/MMFeaturesListPage.qml @@ -21,6 +21,7 @@ MMComponents.MMPage { property var selectedLayer: null property bool hasToolbar: false + property bool layerIsReadOnly: selectedLayer?.readOnly ?? false signal featureClicked( var featurePair ) signal addFeatureClicked( var toLayer ) @@ -91,7 +92,7 @@ MMComponents.MMPage { anchors.bottom: parent.bottom anchors.bottomMargin: root.hasToolbar ? __style.margin20 : ( __style.safeAreaBottom + __style.margin8 ) - visible: __inputUtils.isNoGeometryLayer( root.selectedLayer ) + visible: __inputUtils.isNoGeometryLayer( root.selectedLayer ) && !root.layerIsReadOnly text: qsTr("Add feature")