Skip to content

Commit 41bf860

Browse files
committedMay 1, 2018
One deletes from, not on
1 parent 806545b commit 41bf860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
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 %n feature(s) on layer \"%1\"", nullptr, numberOfSelectedFeatures ).arg( vlayer->name() ),
7358+
int res = QMessageBox::warning( mMapCanvas, tr( "Delete %n feature(s) from layer \"%1\"", nullptr, numberOfSelectedFeatures ).arg( 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 )
@@ -7368,7 +7368,7 @@ void QgisApp::deleteSelected( QgsMapLayer *layer, QWidget *parent, bool checkFea
73687368
if ( !vlayer->deleteSelectedFeatures( &deletedCount ) )
73697369
{
73707370
messageBar()->pushMessage( tr( "Problem deleting features" ),
7371-
tr( "A problem occurred during deletion on layer \"%1\". %n feature(s) not deleted.", nullptr, numberOfSelectedFeatures - deletedCount ).arg( vlayer->name() ),
7371+
tr( "A problem occurred during deletion from layer \"%1\". %n feature(s) not deleted.", nullptr, numberOfSelectedFeatures - deletedCount ).arg( vlayer->name() ),
73727372
Qgis::Warning );
73737373
}
73747374
else

1 commit comments

Comments
 (1)

nyalldawson commented on May 1, 2018

@nyalldawson
Collaborator

Indeed

Please sign in to comment.