pcbnew: Action plugins not running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Medium
|
jean-pierre charras |
Bug Description
The action plugins in pcbnew are not running when they are selected from the submenu. To reproduce, extract the dummy python plugin into a plugins directory (e.g. ~/.kicad_plugins on linux).
1) Launch pcbnew
2) Go into Tools -> External Plugins
3) Select "Dummy Plugin 3"
Note that no popup window opens. If the plugin had run, a popup would open.
Application: Pcbnew
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.59.0 OpenSSL/1.1.0i zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.4) libssh/
Platform: Linux 5.0.16-
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.66.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.59.0
Compiler: GCC 8.3.1 with C++ ABI 1013
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → 6.0.0-rc1 |
tags: | added: python |
This was caused by the event handler for the action menu sending the events for the action plugins to the tool associated with the menu instead of to the event handler associated with the item. The attached patch makes the action menu event handler forward events for auto-generated IDs to the user-connected handler instead of a tool manager.