Skip to content
Permalink
Browse files
Do not wait for feature form closing for non-editable layers
  • Loading branch information
3nids committed Mar 1, 2013
1 parent 4baba76 commit 7a1b12f86108cb8378a6ec07d9c42c5d73731e0e
Showing 1 changed file with 8 additions and 1 deletion.
@@ -530,7 +530,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();
}
}

QList<QgsMapLayer *> QgisAppInterface::editableLayers( bool modified ) const

0 comments on commit 7a1b12f

Please sign in to comment.