Add some more tools to the "don't allow tool loop interruption" set.
See also b78ba12739
.
Fixes https://gitlab.com/kicad/code/kicad/issues/8071
This commit is contained in:
parent
30c92fc5d1
commit
f03152a548
|
@ -210,7 +210,11 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
|
||||
if( symbol )
|
||||
cleanup();
|
||||
{
|
||||
m_frame->ShowInfoBarMsg( _( "Press <ESC> to cancel symbol creation." ) );
|
||||
evt->SetPassEvent( false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( evt->IsMoveTool() )
|
||||
{
|
||||
|
@ -444,7 +448,11 @@ int SCH_DRAWING_TOOLS::PlaceImage( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
|
||||
if( image )
|
||||
cleanup();
|
||||
{
|
||||
m_frame->ShowInfoBarMsg( _( "Press <ESC> to cancel image creation." ) );
|
||||
evt->SetPassEvent( false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( evt->IsMoveTool() )
|
||||
{
|
||||
|
@ -1062,7 +1070,11 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
|
||||
if( item )
|
||||
cleanup();
|
||||
{
|
||||
m_frame->ShowInfoBarMsg( _( "Press <ESC> to cancel item creation." ) );
|
||||
evt->SetPassEvent( false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( evt->IsPointEditor() )
|
||||
{
|
||||
|
@ -1284,7 +1296,11 @@ int SCH_DRAWING_TOOLS::DrawSheet( const TOOL_EVENT& aEvent )
|
|||
}
|
||||
|
||||
if( sheet )
|
||||
cleanup();
|
||||
{
|
||||
m_frame->ShowInfoBarMsg( _( "Press <ESC> to cancel sheet creation." ) );
|
||||
evt->SetPassEvent( false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( evt->IsPointEditor() )
|
||||
{
|
||||
|
|
|
@ -573,7 +573,11 @@ int SCH_LINE_WIRE_BUS_TOOL::doDrawSegments( const std::string& aTool, int aType,
|
|||
else if( evt->IsActivate() )
|
||||
{
|
||||
if( segment || m_busUnfold.in_progress )
|
||||
cleanup();
|
||||
{
|
||||
m_frame->ShowInfoBarMsg( _( "Press <ESC> to cancel drawing." ) );
|
||||
evt->SetPassEvent( false );
|
||||
continue;
|
||||
}
|
||||
|
||||
if( evt->IsMoveTool() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue