Skip to content
Permalink
Browse files

Merge pull request #34819 from obrix/fix_missing_context_attributes

Add missing attributes at QgsAttributeEditorContext creation.
  • Loading branch information
elpaso committed Mar 6, 2020
2 parents 5a84584 + 3faa7f2 commit beab5a3db6b2a3035d2a797afd553325346b8f69
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisapp.cpp
@@ -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 );
@@ -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 );

0 comments on commit beab5a3

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