Skip to content
Permalink
Browse files

Ignore remove legend entries dialog with shift help

  • Loading branch information
NathanW2 committed Mar 29, 2016
1 parent 631a7fd commit d732d845f1303dc6374efe0facfe4bea0d528d91
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -7746,8 +7746,9 @@ void QgisApp::removeLayer()
}

bool promptConfirmation = QSettings().value( "qgis/askToDeleteLayers", true ).toBool();
bool shiftHeld = QApplication::queryKeyboardModifiers().testFlag(Qt::ShiftModifier);
//display a warning
if ( promptConfirmation && QMessageBox::warning( this, tr( "Remove layers and groups" ), tr( "Remove %n legend entries?", "number of legend items to remove", selectedNodes.count() ), QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
if ( !shiftHeld && promptConfirmation && QMessageBox::warning( this, tr( "Remove layers and groups" ), tr( "Remove %n legend entries?", "number of legend items to remove", selectedNodes.count() ), QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
{
return;
}

0 comments on commit d732d84

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