RMB-click selects false symbol/footprint for context menu
Description
The RMB-click in the symbol tree / footprint tree of both library-editors selects the false item/line for the context-menu if the symbol/footprint canvas was used prior to the RMB-click. This leads to a context-menu which refers not to to the desired symbol/footprint, but to the entry one line above the RMB-click.
Affects v7 and v7.99.
This hit me already several times in the past months (where I didn't recognized the error-pattern) and it's really confusing and leads to false actions (accidentally deleting footprints + symbols).
Steps to reproduce
- open kicad, open footprint editor
- open any library with many symbols
- doubleclick a footprint to activate it and open in the canvas-view (see picture 1)
- click into the canvas, pan the view around, maybe select something, or even modify something (note: using scroll-wheel only to zoom canvas is not enough)
- RMB-click onto current active line in the footprint-tree. Try to meet the middle of the line.
- observe: context-menu is opened on the click-position (as expected), but the line above the clicked item is suddenly marked light-blue --> this indicates the context-menu seems to belong to that non-clicked item (see picture 2)
- choose the "delete" action (see picture 3)
- observe: the "delete"-dialog really asks for confirmation for the non-clicked item! So the context-menu really referred to the false footprint!
- Repeat all steps similarly with the symbol-editor --> same behaviour
KiCad Version
Application: KiCad Footprint Editor x64 on x64
Version: (7.99.0-172-g343e3aee55), release build
Libraries:
wxWidgets 3.2.2
FreeType 2.12.1
HarfBuzz 6.0.0
FontConfig 2.14.1
Platform: Windows 10 (build 19044), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.2.2 (wchar_t,wx containers)
Boost: 1.81.0
OCC: 7.6.2
Curl: 7.87.0-DEV
ngspice: 39
Compiler: Visual C++ 1934 without C++ ABI
Build settings:
KICAD_SPICE=ON
Edited by Maik Freitag