Skip to content

Commit 87bb4bc

Browse files
committed
Show feature count and layer when asking for delete confirmation
1 parent b64a958 commit 87bb4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7355,7 +7355,7 @@ void QgisApp::deleteSelected( QgsMapLayer *layer, QWidget *parent, bool checkFea
73557355
if ( !allFeaturesInView )
73567356
{
73577357
// for extra safety to make sure we are not removing geometries by accident
7358-
int res = QMessageBox::warning( mMapCanvas, tr( "Delete features" ),
7358+
int res = QMessageBox::warning( mMapCanvas, tr( "Delete %1 features on layer \"%2\"" ).arg( QString::number( vlayer->selectedFeatureCount() ), vlayer->name() ),
73597359
tr( "Some of the selected features are outside of the current map view. Would you still like to continue?" ),
73607360
QMessageBox::Yes | QMessageBox::No );
73617361
if ( res != QMessageBox::Yes )

0 commit comments

Comments
 (0)