We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5754841 commit 872ed82Copy full SHA for 872ed82
src/gui/qgsattributeform.cpp
@@ -266,7 +266,13 @@ void QgsAttributeForm::synchronizeEnabledState()
266
267
Q_FOREACH( QgsWidgetWrapper* ww, mWidgets )
268
{
269
- ww->setEnabled( isEditable );
+ bool fieldEditable = true;
270
+ QgsEditorWidgetWrapper* eww = qobject_cast<QgsEditorWidgetWrapper*>( ww );
271
+ if ( eww )
272
+ {
273
+ fieldEditable = mLayer->fieldEditable( eww->fieldIdx() );
274
+ }
275
+ ww->setEnabled( isEditable && fieldEditable );
276
}
277
278
QPushButton* okButton = mButtonBox->button( QDialogButtonBox::Ok );
0 commit comments