@@ -695,7 +695,7 @@ void QgisApp::createActions()
695
695
mActionDeleteSelected ->setEnabled ( false );
696
696
697
697
// these three tools to be deprecated - use node tool rather
698
- /* *
698
+ # if 0
699
699
mActionAddVertex = new QAction( getThemeIcon( "mActionAddVertex.png" ), tr( "Add Vertex" ), this );
700
700
shortcuts->registerAction( mActionAddVertex );
701
701
mActionAddVertex->setStatusTip( tr( "Add Vertex" ) );
@@ -713,7 +713,7 @@ void QgisApp::createActions()
713
713
mActionDeleteVertex->setStatusTip( tr( "Delete Vertex" ) );
714
714
connect( mActionDeleteVertex, SIGNAL( triggered() ), this, SLOT( deleteVertex() ) );
715
715
mActionDeleteVertex->setEnabled( false );
716
- */
716
+ # endif
717
717
718
718
mActionAddRing = new QAction ( getThemeIcon ( " mActionAddRing.png" ), tr ( " Add Ring" ), this );
719
719
shortcuts->registerAction ( mActionAddRing );
@@ -5728,10 +5728,11 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5728
5728
mActionCapturePolygon ->setEnabled ( false );
5729
5729
mActionCaptureLine ->setVisible ( false );
5730
5730
mActionCapturePolygon ->setVisible ( false );
5731
- // these three tools to be deprecated - use node tool rather
5732
- // mActionAddVertex->setEnabled( false );
5733
- // mActionDeleteVertex->setEnabled( false );
5734
- // mActionMoveVertex->setEnabled( false );
5731
+ #if 0 //these three tools to be deprecated - use node tool rather
5732
+ mActionAddVertex->setEnabled( false );
5733
+ mActionDeleteVertex->setEnabled( false );
5734
+ mActionMoveVertex->setEnabled( false );
5735
+ #endif
5735
5736
mActionAddRing ->setEnabled ( false );
5736
5737
mActionAddIsland ->setEnabled ( false );
5737
5738
mActionReshapeFeatures ->setEnabled ( false );
@@ -5740,10 +5741,13 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
5740
5741
mActionDeleteRing ->setEnabled ( false );
5741
5742
mActionRotatePointSymbols ->setEnabled ( false );
5742
5743
5744
+ #if 0
5743
5745
if ( vlayer->isEditable() && dprovider->capabilities() & QgsVectorDataProvider::ChangeGeometries )
5744
5746
{
5745
5747
mActionMoveVertex->setEnabled( true );
5746
5748
}
5749
+ #endif
5750
+
5747
5751
if ( vlayer->isEditable () && dprovider->capabilities () & QgsVectorDataProvider::ChangeAttributeValues )
5748
5752
{
5749
5753
if ( QgsMapToolRotatePointSymbols::layerIsRotatable ( vlayer ) )
0 commit comments