Skip to content

Commit c04a219

Browse files
committed
Merge branch 'master' of github.com:qgis/Quantum-GIS
2 parents 67a542b + 95d7ec3 commit c04a219

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/app/qgisappinterface.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,14 @@ bool QgisAppInterface::openFeatureForm( QgsVectorLayer *vlayer, QgsFeature &f, b
531531
return false;
532532

533533
QgsFeatureAction action( tr( "Attributes changed" ), f, vlayer, -1, -1, QgisApp::instance() );
534-
return action.editFeature();
534+
if (vlayer->isEditable())
535+
{
536+
return action.editFeature();
537+
}
538+
else
539+
{
540+
return action.viewFeatureForm();
541+
}
535542
}
536543

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

0 commit comments

Comments
 (0)