Make sure we don't end up with stale picker handlers (lots of Sentry tickets).

This commit is contained in:
Jeff Young
2025-07-04 12:10:59 -06:00
parent da9544dfd1
commit 69b23df4c3
11 changed files with 45 additions and 10 deletions
+2
View File
@@ -3196,6 +3196,8 @@ bool EDIT_TOOL::pickReferencePoint( const wxString& aTooltip, const wxString& aS
/// This allow the option of snapping in the tool
picker->SetSnapping( true );
picker->SetCursor( KICURSOR::PLACE );
picker->ClearHandlers();
const auto setPickerLayerSet =
[&]()