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 (#40617)
  • Loading branch information
qgis-bot committed Dec 18, 2020
1 parent ab92ca4 commit 42b5615
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsselectbyformdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ QgsSelectByFormDialog::QgsSelectByFormDialog( QgsVectorLayer *layer, const QgsAt

QgsGui::enableAutoGeometryRestore( this );

setWindowTitle( tr( "Select Features by Value" ) );
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 42b5615

Please sign in to comment.