Bug 405822 - KTurtle offers to save a file after changes were reverted
Summary: KTurtle offers to save a file after changes were reverted
Status: REPORTED
Alias: None
Product: kturtle
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR task
Target Milestone: ---
Assignee: Cies Breijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 18:18 UTC by Mike Krutov
Modified: 2019-03-24 18:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

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