Skip to content

Commit

Permalink
Keep attribute dialog in front
Browse files Browse the repository at this point in the history
Fix #15103
  • Loading branch information
m-kuhn committed Jun 23, 2016
1 parent 232fb84 commit 0783e8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisappinterface.cpp
Expand Up @@ -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 );
Expand Down
3 changes: 2 additions & 1 deletion src/app/qgsfeatureaction.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 0783e8f

Please sign in to comment.