Bug 481525

Summary: Editing a project's subtitle effects another project, after using "Save As"
Product: [Applications] kdenlive Reporter: red_Arti <jijiliu35>
Component: User InterfaceAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git-master   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:

Description red_Arti 2024-02-19 00:52:33 UTC
SUMMARY
After using "Save As" to create a duplicated project, editing project1's subtitle will make the changes seem to be applied to project2 also. (cachefiles causes that)


STEPS TO REPRODUCE
1. Create project, with option: Project folder = Parant folder of the project file
2. Add some subtitle
3. Save to /path1/p.kdenlive. Click "Continue" in dialog "This will move all temporary files from xxx to /path1/cachefiles"
4. Save As to /path2/p.kdenlive. Click "Continue" in dialog "This will move all temporary files from /path1 to /path2/cachefiles"
5. Quit
6. Double click /path1/p.kdenlive to open. Edit subtitle to make it different. Save. Don't quit
7. Double click /path2/p.kdenlive to open in a 2nd Kdenlive instance. 


OBSERVED RESULT
In the 2nd Kdenlive instance that opens /path2/p.kdenlive, subtitle looks same as /path1/p.kdenlive

EXPECTED RESULT
In the 2nd Kdenlive instance that opens /path2/p.kdenlive, subtitle should be /path2/p.kdenlive.srt

SOFTWARE/OS VERSIONS
Latest git ci build kdenlive-master-7485-linux-gcc-x86_64.AppImage

ADDITIONAL INFORMATION
Comment 1 Jean-Baptiste Mardelle 2024-02-19 12:10:10 UTC
Git commit 0b67c373df9aa2f38a8a11ad491b08fd18563ff4 by Jean-Baptiste Mardelle.
Committed on 19/02/2024 at 12:09.
Pushed by mardelle into branch 'release/24.02'.

Subtitles: add session id to tmp files to ensure 2 concurrent versions of a project don't share the same tmp files

M  +1    -0    src/core.cpp
M  +5    -0    src/core.h
M  +2    -1    src/doc/kdenlivedoc.cpp

https://invent.kde.org/multimedia/kdenlive/-/commit/0b67c373df9aa2f38a8a11ad491b08fd18563ff4