From 289fbb8e96997aae9d8241e3783cd5b077766b63 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 14 Aug 2019 19:32:49 +0200 Subject: time-admin: Save button cannot be enabled if NTP sync is active --- capplets/time-admin/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capplets/time-admin/src/main.c b/capplets/time-admin/src/main.c index 9fdc2cb0..2e31a5af 100644 --- a/capplets/time-admin/src/main.c +++ b/capplets/time-admin/src/main.c @@ -90,7 +90,7 @@ static void UpdatePermission(TimeAdmin *ta) is_authorized = g_permission_get_allowed (G_PERMISSION (ta->Permission)); gtk_widget_set_sensitive(ta->TimeZoneButton, is_authorized); gtk_widget_set_sensitive(ta->NtpSyncSwitch, is_authorized); - gtk_widget_set_sensitive(ta->SaveButton, is_authorized); + gtk_widget_set_sensitive(ta->SaveButton, is_authorized && !ta->NtpState); } static void on_permission_changed (GPermission *permission, -- cgit v1.2.1