Floating dialog has wrong icon on first open (or always with dialog behavior set to floating)

Steps to reproduce:

  • Delete your dialogs-state-ex.ini file
  • open Inkscape
  • (optional, ensures consistent icon theme) in the Welcome dialog, change Appearance to Colorful
  • exit welcome dialog
  • open the XML Editor
  • note the icon is the Inkscape icon, then close and reopen

If you open Preferences > Interface > Windows, and set Dialog behavior to Floating, this affects all floating dialogs, on all subsequent opens

What happened?

  • initially XML Editor icon is the Inkscape icon.
  • Affects affects all dialogs that default to floating (so all, if dialogs default to floating)
  • only happens on very first time (hence why you need to delete dialogs-state-ex.ini)

What should have happened?

  • correct icon

Version info

  • Inkscape 1.2-dev (7e2cb2b5, 2021-08-21) Linux Mint 20
  • Bisection points to b2892c33 (icons always wrong)
Edited by Nathan Lee