Reopening a PDF discards all unsaved annotations
I am using Evince 3.36.7 on GNOME 3.36.6 and noticed the following issue: Reopening a PDF that is already opened by Evince results in the loss of all unsaved annotations.
Steps to reproduce
- Open a PDF in Evince and modify its annotations in some way.
- Reopen the same PDF (using Nautilus or the command line, for example).
- The changes from the first step will disappear without a warning.
Expected behavior
When reopening a PDF with unsaved changes, I would expect Evince to block and display the same dialog that is also shown when trying to close a PDF with unsaved changes to annotations.
References
This might be caused by the same issue that is also responsible for #339 (closed). However, the version of Evince that I am using handles unsaved annotations and unsaved form inputs differently when trying to close a PDF. The prompt about unsaved changes is missing in the second case. Therefore, I decided to report this as a separate issue.