Bug 391202

Summary: KCMs inappropriately enter dirty state when you change a setting and then change it back to what it was before
Product: [Applications] systemsettings Reporter: Zakhar <zakhar.nasimov>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.12.2   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Zakhar 2018-02-28 01:33:49 UTC
This bug is for all of KDE apps, simply put I did not find an appropriate bug to put this under so I choose this package but it really effects all KDE apps which I have used and I have used most of them.

Steps to reproduce:
-Open Kwrite
-Type a few letters
-Delete everything
-Exiting Kwrite will prompt for save or discard changes even thought no changes are present

Another
-Open System Settings
-Open some setting item having something simple as a clickbox
-Check a clickbox
-Uncheck clickbox
-Exiting System Settings will prompt for save or discard changes even thought no changes are present

The 2 I listed are just few of all of the KDE apps I have used put simply if you modify something then change it back and try to close the software you will be prompted to save or discard changes even thought no changes are present.
Comment 1 Christoph Feck 2018-02-28 04:12:49 UTC
Regarding the KWrite issue: You can still undo the deletions, and get back what you typed. If it would exit silently, the undo history is lost. Imagine someone wanting to do Ctrl+A, Ctrl+C, Ctrl+Q, but accidently does Ctrl+A, Ctrl+X, Ctrl+Q.

Reassigning to systemsettings for the second issue.

Please in the future report one ticket for each issue.
Comment 2 Zakhar 2018-02-28 04:29:31 UTC
I hope you understand this isn't an issue for just 1 app, its an issue with all KDE apps so I had no choice in assigning it.
Comment 3 Nate Graham 2018-02-28 04:58:17 UTC
Then all KDE apps need their own bug reports. See https://community.kde.org/Get_Involved/Bug_Reporting#One_issue_per_bug_report
Comment 4 Zakhar 2018-02-28 04:58:47 UTC
This is a big and bizzare update: this particular bug is not reproducible constantly infact another bug arises

-change a setting
-don't hit apply and move on to another setting menu

Result: app doesn't ask if you wanted to save or discard changes

What should have happened: app should have asked wether or not you wanted to save or discard changes.

So the issues are either the app asks save or discard upon no actual change (made a change than reverted change) or app doesen't ask you if you wanted to save or discard change (make change and move to another settings menu)

seems like lots of logic to work out here.
Comment 5 Nate Graham 2018-02-28 05:01:37 UTC
This bug now tracks the issue with System Settings. If you want to report an issue with a specific KDE app, please file another bug. If this bug gets too mixed up to be able to figure out what it's about, we'll have to close it. With bug trackers, it's important to have a narrow focus: one issue per bug report. See https://community.kde.org/Get_Involved/Bug_Reporting#One_issue_per_bug_report
Comment 6 Zakhar 2018-02-28 05:03:53 UTC
Bugs on the way.
Comment 7 Nate Graham 2020-01-14 23:59:45 UTC
This will be fixed in System Settings in Plasma 5.18 thanks to an enormous amount of work by various KDE contributors and the new KConfigXT system.