Skip to content
Permalink
Browse files

deactivate "circular string.." buttons for layer without geom

  • Loading branch information
tudorbarascu authored and nyalldawson committed Jan 11, 2017
1 parent a87d2b9 commit 586b99ad971b72d0c3d85da87a479e7261ba54db
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/app/qgisapp.cpp
@@ -10026,8 +10026,11 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionPasteFeatures->setEnabled( isEditable && canAddFeatures && !clipboard()->empty() );

mActionAddFeature->setEnabled( isEditable && canAddFeatures );
mActionCircularStringCurvePoint->setEnabled( isEditable && ( canAddFeatures || canChangeGeometry ) && vlayer->geometryType() != QGis::Point );
mActionCircularStringRadius->setEnabled( isEditable && ( canAddFeatures || canChangeGeometry ) );
mActionCircularStringCurvePoint->setEnabled( isEditable && ( canAddFeatures || canChangeGeometry )
&& ( vlayer->geometryType() == QGis::Line || vlayer->geometryType() == QGis::Polygon ) );
mActionCircularStringRadius->setEnabled( isEditable && ( canAddFeatures || canChangeGeometry )
&& ( vlayer->geometryType() == QGis::Line || vlayer->geometryType() == QGis::Polygon ) );


//does provider allow deleting of features?
mActionDeleteSelected->setEnabled( isEditable && canDeleteFeatures && layerHasSelection );

0 comments on commit 586b99a

Please sign in to comment.
You can’t perform that action at this time.