Route menu actions start immediately on GTK
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Committed
|
Undecided
|
Jeff Young |
Bug Description
When you select "Route Single Track" from the Route menu in the menu bar, it immediately places the first point in the trace where the mouse is (which is outside the editor window).
Also, when you select "Route Differential Pair" from the route menu, it immediately gives you a dialog saying that you cannot route it in the middle of nowhere.
It seems these two actions are actually trying to start routing a trace immediately rather than wait for the user to click the mouse in the board editor.
Application: Pcbnew
Version: (5.1.0-
Libraries:
wxWidgets 3.0.4
libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 brotli/1.0.7 libidn2/2.1.1 libpsl/0.20.2 (+libidn2/2.0.5) libssh/
Platform: Linux 5.1.15-
Build Info:
wxWidgets: 3.0.4 (wchar_t,wx containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.64.0
Compiler: Clang 8.0.0 with C++ ABI 1002
Build settings:
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
summary: |
- Route menu actions start immediately + Route menu actions start immediately on GTK |
Changed in kicad: | |
status: | Fix Committed → In Progress |
Changed in kicad: | |
status: | In Progress → Fix Committed |
It's very hard to tell a menu item selection from a hotkey in wxWidgets. We have a hack which checks to see if the menu is highlighted to determine if it's a menu selection. This is in ACTION_ MENU::OnMenuEve nt(). It works for OSX; this bug report would suggest it does not work for GTK. I'm not sure about MSW.