Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Connected signal willBeDeleted from QgsVectorLayer to close QgsExpres…
…sionSelectionDialog before the layer is deleted. Fixes #40554
  • Loading branch information
TurboGraphxBeige authored and nyalldawson committed Dec 15, 2020
1 parent c0ece17 commit b5469c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsexpressionselectiondialog.cpp
Expand Up @@ -41,6 +41,7 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye
connect( mActionSelectIntersect, &QAction::triggered, this, &QgsExpressionSelectionDialog::mActionSelectIntersect_triggered );
connect( mButtonZoomToFeatures, &QToolButton::clicked, this, &QgsExpressionSelectionDialog::mButtonZoomToFeatures_clicked );
connect( mPbnClose, &QPushButton::clicked, this, &QgsExpressionSelectionDialog::mPbnClose_clicked );
connect( mLayer, &QgsVectorLayer::willBeDeleted, this, &QgsExpressionSelectionDialog::close );

setWindowTitle( tr( "%1 — Select by Expression" ).arg( layer->name() ) );

Expand Down

0 comments on commit b5469c9

Please sign in to comment.