Net navigator panel is missing sheets after connecting local label to global nets

Description

The net navigator panel looses some sheet entrys after connecting a local label to a global, currently highlighted net.

Just seen: #16818 (closed) shows a similar symptom, so this could be just a duplicate?

Steps to reproduce

  1. open attached project, open schematic:net_navigator_add_label.zip
  2. enable net navigator panel
  3. switch to subsheet page 7
  4. highlight net "+12V", observe the results in the net navigator panel (see picture 1)
  5. connect local label to the global "+12V" net (see picture 2)
  6. clear all highlighting (see picture 3)
  7. again highlight net "+12V", observe the net navigator: now only one sheet is shown as result (see picture 4) netnavigator_01

KiCad Version

Application: KiCad Schematic Editor x64 on x64

Version: 8.0.0-rc2-253-g7e194d5f69, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.12.1
	HarfBuzz 8.3.0
	FontConfig 2.14.2

Platform: Windows 10 (build 19045), 64-bit edition, 64 bit, Little endian, wxMSW

	wxWidgets: 3.2.4 (wchar_t,wx containers)
	Boost: 1.83.0
	OCC: 7.7.1
	Curl: 8.5.0-DEV
	ngspice: 42
	Compiler: Visual C++ 1936 without C++ ABI

Build settings:
Edited by Maik Freitag