File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -449,6 +449,7 @@ void QgsGrassPlugin::addFeature()
449449 QgsDebugMsg ( " grassProvider is null" );
450450 return ;
451451 }
452+ QgsVectorLayer::FeatureFormSuppress formSuppress = QgsVectorLayer::SuppressDefault;
452453 if ( sender () == mAddPointAction )
453454 {
454455 qGisInterface->mapCanvas ()->setMapTool ( mAddPoint );
@@ -463,6 +464,7 @@ void QgsGrassPlugin::addFeature()
463464 {
464465 qGisInterface->mapCanvas ()->setMapTool ( mAddBoundary );
465466 grassProvider->setNewFeatureType ( GV_BOUNDARY );
467+ formSuppress = QgsVectorLayer::SuppressOn;
466468 }
467469 else if ( sender () == mAddCentroidAction )
468470 {
@@ -473,7 +475,9 @@ void QgsGrassPlugin::addFeature()
473475 {
474476 qGisInterface->mapCanvas ()->setMapTool ( mAddArea );
475477 grassProvider->setNewFeatureType ( GV_AREA );
478+ formSuppress = QgsVectorLayer::SuppressOn;
476479 }
480+ vectorLayer->setFeatureFormSuppress ( formSuppress );
477481}
478482
479483void QgsGrassPlugin::mapsetChanged ()
You can’t perform that action at this time.
0 commit comments