Bug 397039 - When a PDF file is saved using file > save as, the file path in file > properties is not updated
Summary: When a PDF file is saved using file > save as, the file path in file > proper...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.4.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-01 04:27 UTC by Kishore Gopalakrishnan
Modified: 2018-08-08 22:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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