When using the "Draw Track" tool (pencil icon) it is WAY too easy to "clear all segments" when all that was desired was to "clear last segment."
And the "undo" feature does not retrieve the deleted segments.
So how about (1) adding a warning popup - "Dumbass - you didn't really want to delete all those last 43,241 track points that you just placed so carefully by hand, did you?"
Or (2) allow undo to retrieve the erroneously deleted points.
Or both.