Removed nagging dialog in the delete tool.
This commit is contained in:
parent
e3a06dca70
commit
dce0743ddb
|
@ -801,12 +801,7 @@ static bool deleteItem( TOOL_MANAGER* aToolMgr, const VECTOR2D& aPosition )
|
||||||
if( selection.Empty() )
|
if( selection.Empty() )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
bool canBeRemoved = ( selection.Front()->Type() != PCB_MODULE_T );
|
aToolMgr->RunAction( PCB_ACTIONS::remove, true );
|
||||||
|
|
||||||
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue