Unsaved form data is lost without warning when reopening PDF
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 283
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
* Xreader version 2.4.4
* Distribution - Linux Mint 19.3
Issue
A filled-in PDF Form with unsaved entries gets closed (i.e. loses all entered data) with no warning if you re-open the same PDF file, either externally or by selecting the file from the Xreader File menu. Since closing a form with unsaved data brings up the "Save a copy?" dialog, I would expect any similar action which would clear the form data to do the same, allowing me to confirm or cancel that action.
Steps to reproduce
- Open a PDF file containing a fill-in form.
- Enter some data into the form (press enter after typing to ensure it gets stored).
- Press Control+W or select File::Close. Confirm that the dialog "Save a copy" appears. Hit Cancel so the file remains open.
Then either:
- From the Xreader menu, select File :: 1. to re-open the same file. File gets re-opened with form data cleared without warning.
or
- Using Nemo, any other file browser, or the command-line, re-open the same PDF file. File gets re-opened with form data cleared without warning.
Expected behaviour
Reopening a PDF file which is already open and has unsaved form data should at least give me a warning and the ability to cancel. I needed to open multiple copies of the same file with different form data so it would be nice for one of the choices of any warning dialog to mean "open the file again from scratch without closing the existing window" although now I know how it works I can replicate that using "save a copy" from the File menu.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or code entry point is named. Start by tracing the File-menu reopen action and the external-file-open path while reproducing the form-data loss; done means reopening a PDF with unsaved form data warns the user and permits cancellation without clearing the existing data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100