Net navigator doesn't show all sheets when new sheets are added
Description
When you add a new subsheet to a schematic, and then highlight a net that exists in both the subsheet and the old parent sheet, the net navigator only lists the occurrences of the net in the new subsheet. It doesn't list the occurrences of the net in any other sheets.
I've also managed to get it to only show nets in the parent sheet, but I'm not sure what I did to achieve that.
I don't know if this is a connectivity bug or strictly a net inspector bug.
Steps to reproduce
- Open this demo project: net_navigator_new_subsheet.zip
- add a new subsheet. Name and filename don't matter.
- copy the resistor, wire, and ground symbol from the root sheet.
- enter the subsheet.
- paste the resistor, wire, and ground (GND is now a net that exists in both the root and the subsheet).
- Highlight the GND net.
- Look in the net inspector. GND is only shown under the subsheet, but we expect it to be listed separately in the root sheet as well.
- save everything and close KiCad
- highlight the GND net
- see that the net inspector now shows GND on all sheets as expected
KiCad Version
Application: KiCad Schematic Editor x86_64 on x86_64
Version: 8.0.0-rc2-206-g73b95ac69f, release build
Libraries:
wxWidgets 3.2.4
FreeType 2.13.2
HarfBuzz 8.3.0
FontConfig 2.15.0
Platform: Arch Linux, 64 bit, Little endian, wxGTK, X11, KDE, x11
wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.83.0
OCC: 7.7.2
Curl: 8.5.0
ngspice: 41
Compiler: GCC 13.2.1 with C++ ABI 1018
Build settings:
KICAD_USE_EGL=ON