Bug 397039

Summary: When a PDF file is saved using file > save as, the file path in file > properties is not updated
Product: [Applications] okular Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version First Reported In: 1.4.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Kishore Gopalakrishnan 2018-08-01 04:27:20 UTC
Steps to reproduce:
1. Settings > configure okular 
2. Uncheck 'display document title...' if it is checked.
3. Select 'display full file path' when not displaying document title.
4. Open a PDF file.
5. File > Save as; save it somewhere else under a different name in a different location
6. Note that the window title changes, indicating that okular is showing the file in the new location.
7. Go to File > Properties.
8. Look at the value of 'file path'.

Observed results:
The file path shown in the properties dialogue is the old path, but the new path is shown in the window title. Reloading the file by pressing 'F5' updates the path in File > Properties to the new location.

Expected results:
The new path and filename should be shown both in the window title and the Properties dialogue.
Comment 1 Albert Astals Cid 2018-08-08 22:29:33 UTC
Git commit 4f06f742f95de968388f9020c940029e43704098 by Albert Astals Cid.
Committed on 08/08/2018 at 22:27.
Pushed by aacid into branch 'Applications/18.08'.

Fix properties dialog path not being correct on Save As

We need to clear DocumentInfo because otherwise it is cached and refers
to the old file

M  +4    -0    autotests/parttest.cpp
M  +2    -0    core/document.cpp

https://commits.kde.org/okular/4f06f742f95de968388f9020c940029e43704098