Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:qgis/Quantum-GIS

  • Loading branch information
kyngchaos committed Apr 3, 2013
2 parents 67a542b + 95d7ec3 commit c04a2198ccc8f47ad01bf61de27df62eb0a0d9ec
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/app/qgisappinterface.cpp
@@ -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 )

0 comments on commit c04a219

Please sign in to comment.
You can’t perform that action at this time.