Describe the bug
Generating a track segment from A to B may take some time, e.g. long distant hiking segment.
When breaking router's segment calculation by right-click, we notice two cases:
- the usual and normal one:
- latest clicked track endpoint B gets discarded
- no track segment from A to B is drawn
- starting point of a new track segment becomes again green marked starting point A
- the rare unexpected one:
- latest clicked track endpoint B gets discarded
- track segment from A to B is already drawn into map because segment calculation has finished during right-click
- starting point of a new track segment becomes again green marked starting point A
- leftover segment keeps visible until a new track segment gets generated or track generation gets aborted
What have you done to circle down the problem?
To Reproduce
- Generate a long distant and time consuming track segment from point A to point B
- Break track segment generation almost simultaneously when router's track segment calculation to point B finishes
- You may notice that point B gets discarded although track segment from A to B is already calculated and drawn
- If not, repeat steps 1 and 2
Expected behavior
Either: Point B does not get discarded if track segment from A to B is already drawn.
Or: If point B gets discarded, leftover already drawn track segment from A to B gets withdrawn from map.
Screenshots
Green marked point on the left has been starting point A and became again starting point A after breaking track segment generation by right-click while segment to endpoint B is already calculated and drawn:

Notice: Track distance in Track Metrics box is 0.0 m, which is the correct distance from A to A.
Attachments
Tracebacks
Desktop
- OS: any
- QMapShack Version: dev version
- Window Manager: -
Additional context
Describe the bug
Generating a track segment from A to B may take some time, e.g. long distant hiking segment.
When breaking router's segment calculation by right-click, we notice two cases:
What have you done to circle down the problem?
To Reproduce
Expected behavior
Either: Point B does not get discarded if track segment from A to B is already drawn.
Or: If point B gets discarded, leftover already drawn track segment from A to B gets withdrawn from map.
Screenshots
Green marked point on the left has been starting point A and became again starting point A after breaking track segment generation by right-click while segment to endpoint B is already calculated and drawn:

Notice: Track distance in Track Metrics box is 0.0 m, which is the correct distance from A to A.
Attachments
Tracebacks
Desktop
Additional context