Skip to content

Commit f5230b1

Browse files
pblottierenyalldawson
authored andcommitted
Update checkbox is available for nogeom layers
1 parent 601cd4d commit f5230b1

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/app/qgsprojectproperties.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,18 +919,23 @@ QgsProjectProperties::QgsProjectProperties( QgsMapCanvas *mapCanvas, QWidget *pa
919919
psb->setValue( QgsProject::instance()->readNumEntry( QStringLiteral( "WFSLayersPrecision" ), "/" + currentLayer->id(), 8 ) );
920920
twWFSLayers->setCellWidget( j, 2, psb );
921921

922-
if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) && ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) )
922+
if ( ( provider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues ) )
923923
{
924-
QCheckBox *cbu = new QCheckBox();
925-
cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) );
926-
twWFSLayers->setCellWidget( j, 3, cbu );
924+
if ( ! currentLayer->isSpatial() or ( provider->capabilities() & QgsVectorDataProvider::ChangeGeometries ) )
925+
{
926+
QCheckBox *cbu = new QCheckBox();
927+
cbu->setChecked( wfstUpdateLayerIdList.contains( currentLayer->id() ) );
928+
twWFSLayers->setCellWidget( j, 3, cbu );
929+
}
927930
}
931+
928932
if ( ( provider->capabilities() & QgsVectorDataProvider::AddFeatures ) )
929933
{
930934
QCheckBox *cbi = new QCheckBox();
931935
cbi->setChecked( wfstInsertLayerIdList.contains( currentLayer->id() ) );
932936
twWFSLayers->setCellWidget( j, 4, cbi );
933937
}
938+
934939
if ( ( provider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) )
935940
{
936941
QCheckBox *cbd = new QCheckBox();

0 commit comments

Comments
 (0)