Bug 269819

Summary: Reload of annotated arachive file destroys unsaved annotations
Product: [Applications] okular Reporter: Zlatan Kadragić <aurelije>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: fabiodurso, simonandric5
Priority: NOR    
Version First Reported In: 0.11.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.0
Sentry Crash Report:

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 :)