Bug 269819 - Reload of annotated arachive file destroys unsaved annotations
Summary: Reload of annotated arachive file destroys unsaved annotations
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.11.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 13:28 UTC by Zlatan Kadragić
Modified: 2017-06-05 13:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zlatan Kadragić 2011-03-31 13:28:54 UTC
Version:           0.11.1 (using KDE 4.5.1) 
OS:                Linux

I have okular archive file (pdf saved as archive, *.okular file). When I opened file and created some more annotations, I made a mistake pressing F5 (I wanted to press 5 to get highlight tool), so file is reloaded and all new annotations vanished. Maybe that is not a bug, but I would expect at least to get some warning before destroying all my annotations since file opening.

Reproducible: Always

Steps to Reproduce:
Open a PDF, add some annotations, save file as okular archive. Open file again, add some more annotations and reload the file.

Actual Results:  
Annotations added since opening the file will be lost.

Expected Results:  
At least warning so you can cancel reload that will destroy your annotations.

OS: Linux (i686) release 2.6.35-28-generic-pae
Compiler: cc
Comment 1 Fabio D'Urso 2012-08-18 20:45:59 UTC
This has been fixed in 0.15 (KDE 4.9), where you get a confirmation prompt if you attempt to close/reload a document with unsaved annotations (Do you want to save your annotation changes or discard them?).
Note: the warning only shows up if you are working on a .okular archive or with a PDF containing embedded annotations, because okular autosaves annotations internally in the other cases.

Thank you for caring about Okular :)