diff --git a/src/app/qgsprojectproperties.cpp b/src/app/qgsprojectproperties.cpp index 4a7cc3787214..11f30a277552 100644 --- a/src/app/qgsprojectproperties.cpp +++ b/src/app/qgsprojectproperties.cpp @@ -919,29 +919,35 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa psb->setValue( QgsProject::instance()->readNumEntry( QStringLiteral( "WFSLayersPrecision" ), "/" + currentLayer->id(), 8 ) ); twWFSLayers->setCellWidget( j, 2, psb ); + QCheckBox *cbu = new QCheckBox(); + cbu->setEnabled(false); if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) ) { if ( ! currentLayer->isSpatial() or ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) ) { - QCheckBox *cbu = new QCheckBox(); + cbu->setEnabled(true); cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) ); - twWFSLayers->setCellWidget( j, 3, cbu ); } } + twWFSLayers->setCellWidget( j, 3, cbu ); + QCheckBox *cbi = new QCheckBox(); + cbi->setEnabled(false); if ( ( provider->capabilities() & QgsVectorDataProvider::AddFeatures ) ) { - QCheckBox *cbi = new QCheckBox(); + cbi->setEnabled(true); cbi->setChecked( wfstInsertLayerIdList.contains( currentLayer->id() ) ); - twWFSLayers->setCellWidget( j, 4, cbi ); } + twWFSLayers->setCellWidget( j, 4, cbi ); + QCheckBox *cbd = new QCheckBox(); + cbd->setEnabled(false); if ( ( provider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) ) { - QCheckBox *cbd = new QCheckBox(); + cbd->setEnabled(true); cbd->setChecked( wfstDeleteLayerIdList.contains( currentLayer->id() ) ); - twWFSLayers->setCellWidget( j, 5, cbd ); } + twWFSLayers->setCellWidget( j, 5, cbd ); j++; }