Font collections: Cannot use arrow keys to switch fonts in text tool, only toggles between two fonts + crash when deselecting collection

Summary:

Video:

Peek_2023-03-04_03-03

Steps to reproduce:

  • see video
  • only tested with a single collection, Inkscape crashed when I unchecked the collection in the text tool to try the same thing with a different collection... (not recorded) - too late for more tests, but wanted this recorded.

What happened?

  • Text tool toggles between two fonts instead of the whole list
  • Inkscape crashes on onchecking font collection in text tool

What should have happened?

  • should be able to navigate through all fonts in selected collection(s)
  • should not crash

Version info

Inkscape 1.3-dev (f225e03d35, 2023-03-03)

    GLib version:     2.72.4
    GTK version:      3.24.33
    glibmm version:   2.66.2
    gtkmm version:    3.24.5
    libxml2 version:  2.9.13
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.50.6
    HarfBuzz version: 2.7.4

    OS version:       Linux Mint 21.1