Files
leocad/common
Leonardo Zide f7ab4170dd Finish active drags before executing commands
Keyboard edits during dragging started a new history sequence and discarded the drag's original undo state. Deleting the dragged piece also left tracking active with a dangling piece pointer, causing the next mouse move to crash.

Accept the active drag before dispatching every command except Cancel, which retains its existing cancellation behavior. Keyboard edits and deletion then run as separate undoable operations after tracking has ended.

Validation: macOS application build and Qt Test suite passed. An offscreen harness using the production view, model, and command handlers reproduced the Delete crash and lost drag undo state before the fix. The fixed version passed five runs each of Delete with continued mouse movement, keyboard movement with undo, and Cancel.

Fixes #1046
Fixes #1048
2026-10-21 11:37:19 -07:00
..
2026-04-29 20:59:17 -07:00
2023-04-29 19:55:54 -07:00
2023-05-15 21:12:08 -07:00
2026-04-29 20:59:17 -07:00
2023-05-15 21:04:48 -07:00
2026-09-30 10:03:54 +02:00
2026-09-12 15:54:44 -07:00
2023-05-15 21:12:08 -07:00
2026-03-10 21:11:40 -07:00
2023-05-15 21:04:48 -07:00
2023-05-15 21:12:08 -07:00
2023-05-15 21:04:48 -07:00
2026-09-30 10:03:54 +02:00
2025-11-19 23:10:18 -08:00
2026-03-10 21:11:40 -07:00
2026-10-20 21:31:31 -07:00
2026-03-10 21:11:40 -07:00
2026-04-29 20:59:17 -07:00
2023-04-29 20:04:58 -07:00
2026-05-02 15:08:13 -07:00
2026-05-02 15:08:13 -07:00
2026-05-02 15:51:08 -07:00
2026-09-12 15:54:44 -07:00
2026-05-02 15:51:08 -07:00
2026-03-10 21:11:40 -07:00
2026-10-20 21:31:31 -07:00
2026-09-21 22:34:18 -07:00
2026-09-12 15:54:44 -07:00
2026-04-29 20:59:17 -07:00
2021-01-07 10:46:57 -08:00
2026-09-12 15:54:44 -07:00
2026-05-02 16:06:27 -07:00
2026-05-02 16:06:27 -07:00
2026-05-02 16:06:27 -07:00
2026-09-12 15:54:44 -07:00
2026-03-10 21:11:40 -07:00
2025-07-05 12:00:52 -07:00
2026-03-10 21:11:40 -07:00
2025-12-15 11:19:23 -03:00
2026-04-29 20:59:17 -07:00
2026-03-30 22:50:17 -07:00
2026-10-19 22:51:03 -07:00
2026-10-19 22:51:03 -07:00
2026-03-10 19:55:49 -07:00
2026-10-18 23:22:28 -07:00