I usually keep few documents open in okular... and I use kde's restore session. after the last update (kde trunk... something very close to 4.9b) okular gets restored only partially. the number of instances of okular restored is correct but no documents are restored... so I end up with few empty okulars. Alin Reproducible: Always
Created attachment 71504 [details] Patch The bug comes from e3f1c388de409843150280a2e1b3a738ab982af6 (transition to ReadWritePart). I'm attaching the fix: Do not close the document in Shell::queryClose() Because if we do, Shell::saveProperties will find it closed and won't save the session correctly. @ Albert: I'm putting it in my commit queue for next week
Git commit ac695d448db95d2e31ba1c3469694e2a576185b4 by Fabio D'Urso. Committed on 01/06/2012 at 22:55. Pushed by fabiod into branch 'master'. Do not close the document in Shell::queryClose() Because if we do, Shell::saveProperties will find it closed and won't save the session correctly. M +1 -1 part.cpp M +1 -1 shell/shell.cpp http://commits.kde.org/okular/ac695d448db95d2e31ba1c3469694e2a576185b4