Renaming a net in Net Inspector resulting in duplicate nets
<!-- --------Before Creating a New Issue----------- * Limit report to a single issue. * Search the issue tracker to verify the issue has not already been reported. * Complete all instructions between `template comment markers <>. * Keep report contents limited to the necessary information required to fix the issue. * When creating an issue against the stable version of KiCad, make sure the latest available stable version is installed as issues may have already been resolved in later stable versions. --> # Description Renaming a net in Net Inspector resulting in duplicate nets. See video: ![录屏2024-02-19_18.40.46](/uploads/b9a4cb24494960183799d07a21012da6/录屏2024-02-19_18.40.46.mov) # Steps to reproduce <!-- If there are multiple steps to reproduce it or it is a visual issue, then providing a screen recording as an attachment to this report is recommended. --> <!-- If this issue is specific to a project, please attach the necessary files to this issue. --> <!-- Add the steps to reproduce using the numbers below --> <!-- Add new step numbers before the "KiCad Version" heading. --> 1. Open a PCB in standalone pcbnew editor 2. Open Net Inspector 3. Select any net and click "Edit" button 4. Change the name and click OK 5. A duplicate item appears in the list; All pads with that net goes into "no net" state # KiCad Version <!-- Copy version information (from main menu Help->About KiCad ->Copy Version Info) and paste it between the triple backticks below to preserve the formatting. --> ``` Application: KiCad PCB Editor arm64 on arm64 Version: 8.0.0-rc3, release build Libraries: wxWidgets 3.2.4 FreeType 2.13.2 HarfBuzz 8.2.0 FontConfig 2.14.2 libcurl/8.4.0 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.58.0 Platform: macOS Sonoma Version 14.3.1 (Build 23D60), 64 bit, Little endian, wxMac Build Info: Date: Feb 16 2024 17:49:19 wxWidgets: 3.2.4 (wchar_t,wx containers) Boost: 1.82.0 OCC: 7.7.2 Curl: 7.87.0 ngspice: 42 Compiler: Clang 14.0.3 with C++ ABI 1002 Build settings: ```
issue