Skip to content
Permalink
Browse files

Keep attribute dialog in front

Fix #15103
  • Loading branch information
m-kuhn committed Jun 23, 2016
1 parent 232fb84 commit 0783e8fc1ddb7dbf4f2bb4804c07c28e2e14568c
Showing with 3 additions and 2 deletions.
  1. +1 −1 src/app/qgisappinterface.cpp
  2. +2 −1 src/app/qgsfeatureaction.cpp
@@ -689,7 +689,7 @@ QgsAttributeDialog* QgisAppInterface::getFeatureForm( QgsVectorLayer *l, QgsFeat
QgsAttributeEditorContext context;
context.setDistanceArea( myDa );
context.setVectorLayerTools( qgis->vectorLayerTools() );
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, nullptr, true, context );
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, qgis, true, context );
if ( !feature.isValid() )
{
dialog->setIsAddDialog( true );
@@ -61,7 +61,8 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );

QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, nullptr, true, context );
QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, parentWidget(), true, context );
dialog->setWindowFlags( dialog->windowFlags() | Qt::WindowStaysOnTopHint );

if ( mLayer->actions()->size() > 0 )
{

0 comments on commit 0783e8f

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