Auto palette, swatches dialog stop updating after opening a new window
Summary:
When a new window is opened and closed, the swatch colours in both the 'Auto' colour palette and the the Swatches dialog no longer update as the swatch colour is changed using the Fill and Stroke dialog.
Steps to reproduce:
- Open Inkscape.
- Open the file swatches.svg.
- Ensure that the Fill and Stroke dialog is visible, and the colour palette is set to 'Auto'.
- Select the only object, a rectangle.
- Press Ctrl+N, then Alt+F4 to open and close a new window.
- Attempt to change the fill colour in the Fill and Stroke dialog.
What happened?
The colour in the colour palette (marked below) no longer updates with the fill colour:
The same also applies to the colours in the Swatches dialog.
What should have happened?
The behaviour should be the same as before opening/closing the new window; the colour should update.
Version info
Replicated on both inkscape@abc4799d AppImage, and a personal build based on inkscape@02f46d08. (Both recent 1.3 master.)
Remarks
The colour is usually updated by SwatchesPanel::handleDefsModified, but the signal that calls it seems to get disconnected after showing the new window.
