Skip to content

Commit

Permalink
Merge pull request #34819 from obrix/fix_missing_context_attributes
Browse files Browse the repository at this point in the history
Add missing attributes at QgsAttributeEditorContext creation.
  • Loading branch information
elpaso committed Mar 6, 2020
2 parents 5a84584 + 3faa7f2 commit beab5a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -9268,6 +9268,9 @@ void QgisApp::modifyAttributesOfSelectedFeatures()
QgsFeature f;
QgsAttributeEditorContext context;
context.setAllowCustomUi( false );
context.setVectorLayerTools( mVectorLayerTools );
context.setCadDockWidget( mAdvancedDigitizingDockWidget );
context.setMapCanvas( mMapCanvas );

QgsAttributeDialog *dialog = new QgsAttributeDialog( vl, &f, false, this, true, context );
dialog->setMode( QgsAttributeEditorContext::MultiEditMode );
Expand Down Expand Up @@ -9567,6 +9570,7 @@ void QgisApp::selectByForm()
QgsAttributeEditorContext context;
context.setDistanceArea( myDa );
context.setVectorLayerTools( mVectorLayerTools );
context.setCadDockWidget( mAdvancedDigitizingDockWidget );
context.setMapCanvas( mMapCanvas );

QgsSelectByFormDialog *dlg = new QgsSelectByFormDialog( vlayer, context, this );
Expand Down

0 comments on commit beab5a3

Please sign in to comment.