Skip to content

Commit

Permalink
Merge branch 'master' of github.com:qgis/Quantum-GIS
Browse files Browse the repository at this point in the history
  • Loading branch information
kyngchaos committed Apr 3, 2013
2 parents 67a542b + 95d7ec3 commit c04a219
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgisappinterface.cpp
Expand Up @@ -531,7 +531,14 @@ bool QgisAppInterface::openFeatureForm( QgsVectorLayer *vlayer, QgsFeature &f, b
return false;

QgsFeatureAction action( tr( "Attributes changed" ), f, vlayer, -1, -1, QgisApp::instance() );
return action.editFeature();
if (vlayer->isEditable())
{
return action.editFeature();
}
else
{
return action.viewFeatureForm();
}
}

QDialog* QgisAppInterface::getFeatureForm( QgsVectorLayer *l, QgsFeature &f )
Expand Down

0 comments on commit c04a219

Please sign in to comment.