Bug 405822

Summary: KTurtle offers to save a file after changes were reverted
Product: [Applications] kturtle Reporter: Mike Krutov <nekoxmachina>
Component: generalAssignee: Cies Breijs <cies>
Status: REPORTED ---    
Severity: task    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mike Krutov 2019-03-24 18:18:55 UTC
SUMMARY


STEPS TO REPRODUCE
1. Open KTurtle
2. Input something into code editor
3. Remove everything, so code editor is clean as it was initially
4. Close KTurtle

OBSERVED RESULT
KTurtle asks if user wants to discard or save changes, which IMO makes no sense since there are no changes to save, since all changes were reverted.

EXPECTED RESULT
KTurtle remembers initial contents of code editor & doesn't propose to save file when contents were not changed, even after edits.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.15.3 (also tried on latest master KTurtle)
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.0

ADDITIONAL INFORMATION
Comment 1 Mike Krutov 2019-03-24 18:21:18 UTC
Found while testing for https://bugs.kde.org/show_bug.cgi?id=405199