Skip to content

Commit

Permalink
Connected signal willBeDeleted from QgsVectorLayer to close QgsExpres…
Browse files Browse the repository at this point in the history
…sionSelectionDialog before the layer is deleted. Fixes #40554

(cherry picked from commit b5469c9)
  • Loading branch information
TurboGraphxBeige authored and nyalldawson committed Dec 15, 2020
1 parent df2c302 commit f059703
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 f059703

Please sign in to comment.