Removed nagging dialog in the delete tool.

This commit is contained in:
Maciej Suminski 2018-04-19 09:05:07 +02:00
parent e3a06dca70
commit dce0743ddb
1 changed files with 1 additions and 6 deletions

View File

@ -801,12 +801,7 @@ static bool deleteItem( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition )
if( selection.Empty() )
return true;
bool canBeRemoved = ( selection.Front()->Type() != PCB_MODULE_T );
if( canBeRemoved || IsOK( aToolMgr->GetEditFrame(), _( "Are you sure you want to delete item?" ) ) )
aToolMgr->RunAction( PCB_ACTIONS::remove, true );
else
aToolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
return true;
}