Skip to content

Commit

Permalink
delete dialog on close
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Dec 13, 2019
1 parent 80a3623 commit 0f20ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsrelationeditorwidget.cpp
Expand Up @@ -530,6 +530,7 @@ void QgsRelationEditorWidget::linkFeature()
layer = mRelation.referencingLayer();

QgsFeatureSelectionDlg *selectionDlg = new QgsFeatureSelectionDlg( layer, mEditorContext, this );
selectionDlg->setAttribute( Qt::WA_DeleteOnClose );

const QString displayString = QgsVectorLayerUtils::getFeatureDisplayString( mRelation.referencedLayer(), mFeature );
selectionDlg->setWindowTitle( tr( "Link existing child features for parent %1 \"%2\"" ).arg( mRelation.referencedLayer()->name(), displayString ) );
Expand Down

0 comments on commit 0f20ddb

Please sign in to comment.