Skip to content

Commit

Permalink
iface.getFeatureDialog creates an "add" dialog for an invalid feature
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Dec 10, 2014
1 parent 5fd04e6 commit dd1bb9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisappinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit dd1bb9f

Please sign in to comment.