Skip to content
Permalink
Browse files
fix #7386 (yet another issue)
  • Loading branch information
jef-n committed Mar 20, 2013
1 parent 7008cd4 commit 9672d1f7cf9cea759943cbc0b947ceee3da7e6d5
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/core/qgsvectorlayer.cpp
@@ -3639,16 +3639,16 @@ QString &QgsVectorLayer::dateFormat( int idx )
bool QgsVectorLayer::fieldEditable( int idx )
{
const QgsFields &fields = pendingFields();
if ( idx >= 0 && idx < fields.count() && mEditTypes.contains( fields[idx].name() ) )
return mFieldEditables[ fields[idx].name()];
if ( idx >= 0 && idx < fields.count() )
return mFieldEditables.value( fields[idx].name(), true );
else
return true;
}

void QgsVectorLayer::setFieldEditable( int idx, bool editable )
{
const QgsFields &fields = pendingFields();
if ( idx >= 0 && idx < fields.count() && mEditTypes.contains( fields[idx].name() ) )
if ( idx >= 0 && idx < fields.count() )
mFieldEditables[ fields[idx].name()] = editable;
}

0 comments on commit 9672d1f

Please sign in to comment.