Skip to content
Permalink
Browse files
enable geometry changing polygon tools only when 'change geometry' ca…
…pability is available.

OGR's postgresql driver apparently doesn't support geometry updates (fixes #9468)
  • Loading branch information
jef-n committed Feb 8, 2014
1 parent b7a6937 commit a0fc024e76b9f40cff1bfde76e6dbf8111c7eb3a
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/app/qgisapp.cpp
@@ -8673,13 +8673,13 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
{
mActionAddFeature->setIcon( QgsApplication::getThemeIcon( "/mActionCapturePolygon.png" ) );

mActionAddRing->setEnabled( isEditable && canAddFeatures );
mActionFillRing->setEnabled( isEditable && canAddFeatures );
mActionReshapeFeatures->setEnabled( isEditable && canAddFeatures );
mActionAddRing->setEnabled( isEditable && canChangeGeometry );
mActionFillRing->setEnabled( isEditable && canChangeGeometry );
mActionReshapeFeatures->setEnabled( isEditable && canChangeGeometry );
mActionSplitFeatures->setEnabled( isEditable && canAddFeatures );
mActionSplitParts->setEnabled( isEditable && canAddFeatures );
mActionSimplifyFeature->setEnabled( isEditable && canAddFeatures );
mActionDeleteRing->setEnabled( isEditable && canAddFeatures );
mActionSplitParts->setEnabled( isEditable && canChangeGeometry );
mActionSimplifyFeature->setEnabled( isEditable && canChangeGeometry );
mActionDeleteRing->setEnabled( isEditable && canChangeGeometry );
mActionOffsetCurve->setEnabled( false );
}

0 comments on commit a0fc024

Please sign in to comment.