CMS tab drop down doesn't update until Fill and Stroke dialog closed and reopened after color profiles are updated

Summary:

Flag color CMS tab drop down doesn't update to show the newly added color profiles if they're added to the document after an object is selected.

Steps to reproduce:

  1. Download some color profiles if you don't already have them: Adobe ICC Profiles
  2. If you didn't already have color profiles, copy the Coated GRACoL 2006 profile into the following folder:
    • Windows: C:\Windows\System32\spool\drivers\color
    • Linux: /home/USER_NAME_HERE/.color/icc (unless Inkscape expects it somewhere else)
  3. Open Inkscape
  4. Draw a rectangle and ensure it's selected
  5. Open the Fill and Stroke panel (Shift + Ctrl + F)
  6. Click the "CMS" button
    • Note the dropdown only having the choice of "<none>"
  7. Open File > Document Properties... (Shift + Ctrl + D)
  8. Switch to the Color tab
  9. Select Coated GRACoL 2006 from the drop down and hit the '+' button
  10. Close the Document Properties
    • Rectangle should still be selected
  11. Click the drop down in the "CMS" panel
    • Note it still only shows "<none>"
  12. Close and reopen the Fill and Stroke Dialog

Edit: This had gotten worse in 1.1 and later, but instructions to replicate for 1.0.2 were 10. Deselect the rectangle 11. Reselect the rectangle 12. Click the drop down in the "CMS" panel - Note it now shows the "Coated-GRACo...2647-2:2004-" option

What happened?

Objects selected before adding a new color profile to the document don't update to show that color profile as an option without refreshing the entire color panel. (Switching color input method tabs then going back to CMS doesn't make any difference.)

What should have happened?

The drop down in the CMS panel should update when a new color profile is added to the document.

Sample attachments:

None. It's replicable from scratch.

Version Info:

- Inkscape Version: 1.0.2-2 (e86c870879, 2021-01-15), or for reopening the F&S dialog, 1.1 and later
- Operating System: Windows 10
- Operating System version: 2004
- Operating System build: 19041.985
Edited by Nathan Lee