mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge branch 'master' of github.com:qgis/Quantum-GIS
This commit is contained in:
commit
c04a2198cc
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user