Undo history window improperly registering selection of '[Unchanged]' as a change

Summary:

Just happened to notice that if you open up the Undo History window, and click on the '[Unchanged]' section to undo everything and go back to the base item, Inkscape will think that you have modified the file still and trigger the '*' in the title bar, and throw up the save changes window if you try to close the program.

Steps to reproduce:

  1. Open any file you have into Inkscape.
  2. Select an item on your document and hit 'H' to flip the selected item. (NOTE: It doesn't really matter what you do on this stage, it could be even just locking or unlocking a layer. You just need to do something to trigger a change in the document.)
  3. Ctrl+Z to undo.
  4. Notice that the title bar doesn't have the '*' in front of the file name, thus your file is as-is when you opened it.
  5. Open the Undo History window (Ctrl+Shift+H)
  6. Select the change you did in Step 2 in the Undo History window.
  7. Now, select the '[Unchanged]' in the Undo History window.
  8. Now attempt to close Inkscape.

What happened?

Inkscape throws up the "Save Changes" window since Inkscape thinks the file was modified unlike after Step 3 when doing the same exact thing via the Ctrl+Z command.

What should have happened?

Inkscape should close, since you didn't modify the file, as you clicked on the 'Unchanged' part of the history.

Now, this only happens if you select the '[Unchanged]' line in the Undo History window. You could follow the additional steps below and then be able to properly close the file without the "Save Changes" window showing up:

  1. Cancel out of the Save Changes window.
  2. Re-select the 'Flip horizontally' line in the Undo History window.
  3. Hit either Ctrl+Z to undo or the Undo button in the Edit menu or on your toolbar.
  4. Now attempt to close Inkscape.
  5. Inkscape now closes without throwing up the "Save Changes" window (which it should have after you had clicked on the '[Unchanged]' entry in the Undo History window).

Version info

Inkscape 1.1 (c68e22c387, 2021-05-23)  (64-bit version)
Windows 7 SP1 x64