Skip to content
Permalink
Browse files

Fix crash when removing a layer while Select by Expression dialog in …

…opened
  • Loading branch information
github-actions authored and nyalldawson committed Dec 15, 2020
1 parent c595db7 commit 341836f09023bf9a29f0b4f6e2b537be3994719b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsexpressionselectiondialog.cpp
@@ -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( QStringLiteral( "Select by Expression - %1" ).arg( layer->name() ) );

0 comments on commit 341836f

Please sign in to comment.
You can’t perform that action at this time.