Skip to content

Commit

Permalink
Follow up b5469c9, also close Select by Form dialog when layer is rem…
Browse files Browse the repository at this point in the history
…oved
  • Loading branch information
nyalldawson committed Dec 16, 2020
1 parent 4fdb0e9 commit d7cce9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsselectbyformdialog.cpp
Expand Up @@ -47,6 +47,8 @@ QgsSelectByFormDialog::QgsSelectByFormDialog( QgsVectorLayer *layer, const QgsAt
QgsGui::enableAutoGeometryRestore( this );

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

connect( mLayer, &QgsVectorLayer::willBeDeleted, this, &QgsSelectByFormDialog::close );
}

void QgsSelectByFormDialog::setMessageBar( QgsMessageBar *messageBar )
Expand Down

0 comments on commit d7cce9c

Please sign in to comment.