Skip to content
Permalink
Browse files

Show feature count and layer when asking for delete confirmation

  • Loading branch information
m-kuhn committed Apr 26, 2018
1 parent b64a958 commit 87bb4bc1a34a52792e501d43d305508e5a9581a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -7355,7 +7355,7 @@ void QgisApp::deleteSelected( QgsMapLayer *layer, QWidget *parent, bool checkFea
if ( !allFeaturesInView )
{
// for extra safety to make sure we are not removing geometries by accident
int res = QMessageBox::warning( mMapCanvas, tr( "Delete features" ),
int res = QMessageBox::warning( mMapCanvas, tr( "Delete %1 features on layer \"%2\"" ).arg( QString::number( vlayer->selectedFeatureCount() ), vlayer->name() ),
tr( "Some of the selected features are outside of the current map view. Would you still like to continue?" ),
QMessageBox::Yes | QMessageBox::No );
if ( res != QMessageBox::Yes )

0 comments on commit 87bb4bc

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