Bug 337707 - "Set date and time automatically" checked and greyed out after uninstallation of ntpdate
Summary: "Set date and time automatically" checked and greyed out after uninstallation...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_clock (show other bugs)
Version: 4.11.9
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-07-22 20:08 UTC by Ralf Jung
Modified: 2014-09-13 19:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Jung 2014-07-22 20:08:02 UTC
I am switching from ntpdate to the full-blown ntp daemon, so I uninstalled that utility. Previously, I had selected "Set date and time automatically" in the configuration dialogue to make KDE call ntpdate regularly.
After uninstallation, that checkbox was grayed out as expected, with a comment in the tooltip saying I had to install ntpdate to use it (this comment could be more prominently based btw, not just in a mouse-over). However, the checkbox is still checked, which means that I cannot change the time manually either! I had to install ntpdate, uncheck the box, and then uninstall it again.

The checkbox should be autoamtically unchecked when it is grayed out due to missing tools.
Comment 1 Christoph Feck 2014-07-23 02:04:36 UTC
Yep, it should not read that setting when the NTP utility was not found.
Comment 2 Mathias Tillman 2014-09-06 09:43:07 UTC
I have submitted a review request here that should fix this problem: https://git.reviewboard.kde.org/r/120077/
Comment 3 Albert Astals Cid 2014-09-08 14:50:48 UTC
Git commit c41fd1de20f8a0462a855cc59573e7431c0f7586 by Albert Astals Cid, on behalf of Mathias Tillman.
Committed on 08/09/2014 at 14:49.
Pushed by aacid into branch 'master'.

Make sure that the time and date are editable when ntpdate is missing

This fixes a bug where if you enable automatic time synchronisation and for whatever reason remove ntpdate the time and date are not editable, and you can't disable the automatic synchronisation due to the missing binary. The only way around it currently is to install ntpdate again, go to date and time settings, disable automatic synchronisation and then finally remove ntpdate again.

It also makes the Servers list uneditable when ntpdate is missing, as well as it having the same tooltip as the checkbox.
REVIEW: 120077

M  +11   -4    kcms/dateandtime/dtime.cpp

http://commits.kde.org/plasma-desktop/c41fd1de20f8a0462a855cc59573e7431c0f7586