Bug 501966

Summary: "Unable to change NTP settings" error message when canceling password dialog
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_clockAssignee: Plasma Bugs List <plasma-bugs-null>
Status: ASSIGNED ---    
Severity: minor CC: gianfranco.cassone2005, kde, nate
Priority: NOR Keywords: usability
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2025-03-25 03:37:49 UTC
Created attachment 179713 [details]
screenshot

STEPS TO REPRODUCE
1. open Date & Time KCM
2. check or uncheck "Set date and time automatically"
3. click on "Apply" button - password dialog shows up
4. cancel the password dialog

OBSERVED RESULT
"Unable to change NTP settings" error message seen in the attached screenshot

EXPECTED RESULT
no error

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Graphics Platform: Wayland
Comment 1 David Edmundson 2025-03-25 10:49:32 UTC
If changing NTP settings requires authentication on your setup and you cancel the password dialog then this message is correct. 

Can you confirm what you expect to happen?
Comment 2 Patrick Silva 2025-03-25 13:38:44 UTC
It's unnecessary to show a message after canceling a password dialog confirming that a change was not applied. This is obvious.
Another thing is that after canceling the password dialog we can change "Set date and time automatically" without entering a password.
Comment 3 Gianfranco Cassone 2025-03-25 20:16:59 UTC
(In reply to Patrick Silva from comment #2)
> It's unnecessary to show a message after canceling a password dialog
> confirming that a change was not applied. This is obvious.
> Another thing is that after canceling the password dialog we can change "Set
> date and time automatically" without entering a password.

If i cancel the dialog and try to change the settings it asks for the password, so it seems fine
Comment 4 Nate Graham 2025-03-25 20:34:22 UTC
This is a real issue; canceling a password dialog shouldn't show an error message.
Comment 5 Gianfranco Cassone 2025-03-26 18:52:34 UTC
*** Bug 501979 has been marked as a duplicate of this bug. ***
Comment 6 Bug Janitor Service 2025-09-26 13:09:44 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3214