Bug 424016

Summary: Asking to recover project after saving the file
Product: [Applications] kdenlive Reporter: V4vachan <vachan2014carmel>
Component: User Interface & MiscellaneousAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description V4vachan 2020-07-09 05:43:45 UTC
SUMMARY
Even after saving a file. Kden prompts me to recover from a backup file even though I saved the project. When I open my project from the backup and close the program and then open the original saved project. It works perfectly.


STEPS TO REPRODUCE (happens occasionally)
1. Open a new project
2. Save the project
3. Close KDEN LIVE
4. Open saved file from the recent menu in the program
5. Warning may appear
6. Recover from backup
7. Close KDEN live without saving
8. Open the original project once again.

OBSERVED RESULT
KDEN live asks me to recover from a backup file. I loose some project data
Close kden live without saving and open the original project again, everything works fine.


EXPECTED RESULT
Open the project.

SOFTWARE/OS VERSIONS
Windows: 10 2004
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Jean-Baptiste Mardelle 2020-07-13 07:36:51 UTC
Git commit 9cac6b3bf070318e5a2c0d744ba3bce229dad475 by Jean-Baptiste Mardelle.
Committed on 13/07/2020 at 07:36.
Pushed by mardelle into branch 'release/20.08'.

Ensure auto-saved file is newer than project before proposing to recover data.

M  +10   -3    src/project/projectmanager.cpp

https://invent.kde.org/multimedia/kdenlive/commit/9cac6b3bf070318e5a2c0d744ba3bce229dad475
Comment 2 V4vachan 2020-07-28 03:00:13 UTC
(In reply to Jean-Baptiste Mardelle from comment #1)
> Git commit 9cac6b3bf070318e5a2c0d744ba3bce229dad475 by Jean-Baptiste
> Mardelle.
> Committed on 13/07/2020 at 07:36.
> Pushed by mardelle into branch 'release/20.08'.
> 
> Ensure auto-saved file is newer than project before proposing to recover
> data.
> 
> M  +10   -3    src/project/projectmanager.cpp
Thanks
> 
> https://invent.kde.org/multimedia/kdenlive/commit/
> 9cac6b3bf070318e5a2c0d744ba3bce229dad475