kicad/common/tool
Ian McInerney e28381841a Don't remember the menu in the tool dispatcher
Remembering the menu in the tool dispatcher can lead to stale pointers
if we never receive the required menu open or close events. Since wx
3.1.3, we get a valid menu object for all three events, so just forward
the event to that menu unconditionally if the menu is one of our
ACTION_MENUs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16844

(Cherry-picked from b588001b95)
2024-02-11 23:27:38 +00:00
..
action_manager.cpp More wxS ugh 2023-01-17 07:43:04 -05:00
action_menu.cpp Unbind ACTION_MENU events in destructor 2023-10-11 00:17:03 +00:00
action_toolbar.cpp More wxS ugh 2023-01-17 07:43:04 -05:00
actions.cpp Implement undo/redo around Pad Edit Mode changes. 2023-09-02 11:18:34 +01:00
common_control.cpp Fix GitLab URLs to point to the correct project page 2023-05-17 13:42:48 +01:00
common_tools.cpp Change behavior of ZOOM_FIT_ALL and ZOOM_FIT_OBJECTS for PCB_EDITOR 2023-09-06 16:56:27 +01:00
conditional_menu.cpp Add "Enter Sheet" to Sheet tool (context menu & double-click). 2022-05-30 14:08:26 +01:00
edit_constraints.cpp Partially integrate grid snapping with constraints. 2022-02-22 22:19:55 +00:00
edit_points.cpp Support point editing of inverted rectangles. 2024-01-17 15:31:17 +00:00
editor_conditions.cpp Move show-bounding-boxes to a tool on the toolbars. 2022-01-17 11:56:40 +00:00
grid_helper.cpp PCB_GRID_HELPER::BestSnapAnchor() fix overflow due to use of int. 2023-08-11 18:04:27 +02:00
grid_menu.cpp Text size sanity checking for TEXT_ITEMS_GRID. 2022-10-06 13:19:08 +01:00
picker_tool.cpp TOOL_EVENT: make command string non-optional 2022-09-19 10:23:09 -04:00
selection.cpp Clean up handling of selection changes 2023-01-21 17:37:29 -05:00
selection_conditions.cpp Flags: remove unused IS_DRAGGING 2022-12-28 12:27:57 -05:00
selection_tool.cpp Rename GetSelectMenuText to GetItemDescription 2023-01-11 22:27:44 -05:00
tool_action.cpp More wxS ugh 2023-01-17 07:43:04 -05:00
tool_base.cpp Push tool framework base down into TOOL_HOLDER. 2020-03-24 19:00:25 +00:00
tool_dispatcher.cpp Don't remember the menu in the tool dispatcher 2024-02-11 23:27:38 +00:00
tool_event.cpp TOOL_EVENT: make command string non-optional 2022-09-19 10:23:09 -04:00
tool_interactive.cpp Beware of copying events and losing the m_passEvent flag. 2019-06-17 14:44:39 +01:00
tool_manager.cpp Fix GCC build issue on Linux. 2023-01-17 07:59:09 -05:00
tool_menu.cpp ADDED netclass assignment from PCB canvas. 2022-09-03 19:29:59 +01:00
tools_holder.cpp More wxS ugh 2023-01-17 07:43:04 -05:00
zoom_menu.cpp On-the-fly translations for Grid and Zoom menus. 2022-02-25 17:36:35 +00:00
zoom_tool.cpp TOOL_EVENT: make command string non-optional 2022-09-19 10:23:09 -04:00