File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3639,16 +3639,16 @@ QString &QgsVectorLayer::dateFormat( int idx )
36393639bool QgsVectorLayer::fieldEditable ( int idx )
36403640{
36413641 const QgsFields &fields = pendingFields ();
3642- if ( idx >= 0 && idx < fields.count () && mEditTypes . contains ( fields[idx]. name () ) )
3643- return mFieldEditables [ fields[idx].name ()] ;
3642+ if ( idx >= 0 && idx < fields.count () )
3643+ return mFieldEditables . value ( fields[idx].name (), true ) ;
36443644 else
36453645 return true ;
36463646}
36473647
36483648void QgsVectorLayer::setFieldEditable ( int idx, bool editable )
36493649{
36503650 const QgsFields &fields = pendingFields ();
3651- if ( idx >= 0 && idx < fields.count () && mEditTypes . contains ( fields[idx]. name () ) )
3651+ if ( idx >= 0 && idx < fields.count () )
36523652 mFieldEditables [ fields[idx].name ()] = editable;
36533653}
36543654
You can’t perform that action at this time.
0 commit comments