Skip to content

Commit 0783e8f

Browse files
committedJun 23, 2016
Keep attribute dialog in front
Fix #15103
1 parent 232fb84 commit 0783e8f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎src/app/qgisappinterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ QgsAttributeDialog* QgisAppInterface::getFeatureForm( QgsVectorLayer *l, QgsFeat
689689
QgsAttributeEditorContext context;
690690
context.setDistanceArea( myDa );
691691
context.setVectorLayerTools( qgis->vectorLayerTools() );
692-
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, nullptr, true, context );
692+
QgsAttributeDialog *dialog = new QgsAttributeDialog( l, &feature, false, qgis, true, context );
693693
if ( !feature.isValid() )
694694
{
695695
dialog->setIsAddDialog( true );

‎src/app/qgsfeatureaction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )
6161
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );
6262
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );
6363

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.