Skip to content

Commit

Permalink
fix #7386 (another issue)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 20, 2013
1 parent e2c80d3 commit 981c174
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsfieldsproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,8 @@ void QgsFieldsProperties::apply()
QgsVectorLayer::EditType editType = editTypeFromButtonText( pb->text() );
mLayer->setEditType( idx, editType );

mLayer->setFieldEditable( idx, mFieldEditables.value( idx, true ) );
if ( mFieldEditables.contains( idx ) )
mLayer->setFieldEditable( idx, mFieldEditables[idx] );

switch ( editType )
{
Expand Down

0 comments on commit 981c174

Please sign in to comment.