Skip to content

Commit

Permalink
Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and nyalldawson committed Oct 6, 2023
1 parent 4301244 commit b9bfaf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -920,31 +920,31 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa
twWFSLayers->setCellWidget( j, 2, psb );

QCheckBox *cbu = new QCheckBox();
cbu->setEnabled(false);
cbu->setEnabled( false );
if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) )
{
if ( ! currentLayer->isSpatial() or ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) )
{
cbu->setEnabled(true);
cbu->setEnabled( true );
cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) );
}
}
twWFSLayers->setCellWidget( j, 3, cbu );

QCheckBox *cbi = new QCheckBox();
cbi->setEnabled(false);
cbi->setEnabled( false );
if ( ( provider->capabilities() & QgsVectorDataProvider::AddFeatures ) )
{
cbi->setEnabled(true);
cbi->setEnabled( true );
cbi->setChecked( wfstInsertLayerIdList.contains( currentLayer->id() ) );
}
twWFSLayers->setCellWidget( j, 4, cbi );

QCheckBox *cbd = new QCheckBox();
cbd->setEnabled(false);
cbd->setEnabled( false );
if ( ( provider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) )
{
cbd->setEnabled(true);
cbd->setEnabled( true );
cbd->setChecked( wfstDeleteLayerIdList.contains( currentLayer->id() ) );
}
twWFSLayers->setCellWidget( j, 5, cbd );
Expand Down

0 comments on commit b9bfaf5

Please sign in to comment.