dialog "Edit footprint filter" filled with false string

Description

The dialog "Edit footprint filter" (invoked from the symbol editor --> Library symbol properties dialog-->Footprint filters pane) is filled with a false string. It seems it's the string which was last succesfully used with this dialog. The behaviour survives even a kicad close/restart cycle.

My workaround for now is to make a screenshot to remember the old string - very cumbersome.

Steps to reproduce

  1. open attached project with included project-local library: variants_footprint_03.zip
  2. start symbol editor, open "projectlib_buglibrary", open symbol "LMR16006" (picture 1)
  3. doubleclick empty canvas area to get library symbol properties dialog, switch to "footprint filters" pane
  4. doubleclick existing filter entry, dialog "Edit Footprint Filter" is displayed (picture 2)
  5. Maybe you get already a incorrect string in this dialog (like picture 6+7), or you have to follow the next steps
  6. if the string is correct (like in picture 2), just add some additional letters to the footprint filter string and click "OK" (picture 3)
  7. the additional letters are correctly added to the filterstring, now close the "symbol properties dialog" with OK (picture 4)
  8. You are back on the symbol editing canvas. The library tree shows the unsaved modification of symbol "LMR16006". Now switch to connector symbol "MM_2x07" (picture 5)
  9. doubleclick empty canvas area to get Library symbol properties dialog, switch to "Footprint filters" pane (picture 6)
  10. doubleclick the only existing filter string, the "Edit footprint filter" dialog is displayed - but the prefilled string is not the existing footprint filter string, instead it's the last used string from the last symbol (remember the extra added letters) (picture 7)

footprint_filters_field_03

KiCad Version

Application: KiCad Symbol Editor x64 on x64

Version: 10.0.3-152-g207cdf29dd, release build

Libraries:
	wxWidgets 3.3.2 
	FreeType 2.13.3
	HarfBuzz 12.3.0
	FontConfig 2.17.1

Platform: Windows 11 (build 26200), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: Intel, Intel(R) Iris(R) Xe Graphics, 4.6.0 - Build 30.0.100.9837

	wxWidgets: 3.3.2 (wchar_t,STL containers)
	Boost: 1.90.0
	OCC: 7.9.2
	Curl: 8.18.0
	ngspice: 46
	Compiler: Visual C++ 1944 without C++ ABI
	KICAD_IPC_API=ON
	KICAD_USE_PCH=OFF

Locale: 
	Lang: en_GB
	Enc: UTF-8
	Num: 1,234.5
	Encoded кΩ丈: D0BACEA9E4B888 (sys), D0BACEA9E4B888 (utf8)