diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index d9bd2475777..cba3ae123ad 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -3749,6 +3749,14 @@ void QgisApp::deleteSelected() return; } + //display a warning + int numberOfDeletedFeatures = vlayer->selectedFeaturesIds().size(); + if(QMessageBox::warning(this, tr("Delete features"), tr("Delete %1 feature(s)?").arg(numberOfDeletedFeatures), QMessageBox::Ok, QMessageBox::Cancel) == QMessageBox::Cancel) + { + return; + } + + if ( !vlayer->deleteSelectedFeatures() ) { QMessageBox::information( this, tr( "Problem deleting features" ),