Break out of the zone tool on complete

After placing a zone, we want to be able to immediately edit the zone
points.  But in the zone tool, we have the intermediate context menu
that doesn't help, so breaking back to the selection tool simplifies
that workflow

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21319
This commit is contained in:
Seth Hillbrand 2025-07-14 18:07:24 -07:00
parent dc4f639c61
commit e04c5783cf

View File

@ -3310,9 +3310,9 @@ int DRAWING_TOOL::DrawZone( const TOOL_EVENT& aEvent )
polyGeomMgr.SetFinished();
polyGeomMgr.Reset();
started = false;
m_controls->SetAutoPan( false );
m_controls->CaptureCursor( false );
cleanup();
m_frame->PopTool( aEvent );
break;
}
// adding a corner
else if( polyGeomMgr.AddPoint( cursorPos ) )