Skip to content
Permalink
Browse files

iface.getFeatureDialog creates an "add" dialog for an invalid feature

  • Loading branch information
m-kuhn committed Dec 10, 2014
1 parent 5fd04e6 commit dd1bb9f8512ca556ca7a4cf78c184d5a1f0ccfe6
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisappinterface.cpp
@@ -636,6 +636,10 @@ QgsAttributeDialog* QgisAppInterface::getFeatureForm( QgsVectorLayer *l, QgsFeat
context.setDistanceArea( myDa );
context.setVectorLayerTools( qgis->vectorLayerTools() );
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, NULL, true, context );
if ( !feature.isValid() )
{
dialog->setIsAddDialog( true );
}
return dialog;
}

0 comments on commit dd1bb9f

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