Bug 470727

Summary: All undo history is lost after saving
Product: [Applications] LabPlot2 Reporter: João Figueiredo <jf.mundox>
Component: generalAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: major CC: jf.mundox
Priority: NOR    
Version First Reported In: 2.10.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 2.10.1
Sentry Crash Report:

Description João Figueiredo 2023-06-07 00:55:14 UTC
SUMMARY
All undo history is lost after saving the project. This is very dangerous because it effectively means the history only lasts as long as the period between autosaves; if you accidentally delete something and it autosaves right after, it's lost forever.

STEPS TO REPRODUCE
1. Open a project
2. Change something
3. Save the project
4. Try to undo the change

OBSERVED RESULT
You can't undo it.

EXPECTED RESULT
You should be able to undo it. The undo history should persist in the same session between saves.
Maybe there could even be an option to save it within the project file itself, so it's always available across sessions.

SOFTWARE/OS VERSIONS

Linux: 6.3.5-arch1-1
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Comment 1 Alexander Semke 2023-06-09 08:11:32 UTC
(In reply to João Figueiredo from comment #0)
> SUMMARY
> All undo history is lost after saving the project. This is very dangerous
> because it effectively means the history only lasts as long as the period
> between autosaves; if you accidentally delete something and it autosaves
> right after, it's lost forever.
> 
> STEPS TO REPRODUCE
> 1. Open a project
> 2. Change something
> 3. Save the project
> 4. Try to undo the change
Thank you for reporting this issue. We fixed it and the fix will be available in the next patch release of LabPlot 2.10 that we plan to do in the next weeks.
Comment 2 João Figueiredo 2023-06-09 22:20:59 UTC
Awesome, thank you for the quick response!