summaryrefslogtreecommitdiff
path: root/capplets/time-admin/src/main.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-14 19:32:49 +0200
committerraveit65 <[email protected]>2019-08-20 16:10:38 +0200
commit289fbb8e96997aae9d8241e3783cd5b077766b63 (patch)
tree143a8fd9febe62d5c5571e8058080efea8e70efe /capplets/time-admin/src/main.c
parent0a001ed9dce071b13d75219f51b4fd68f9697f50 (diff)
downloadmate-control-center-289fbb8e96997aae9d8241e3783cd5b077766b63.tar.bz2
mate-control-center-289fbb8e96997aae9d8241e3783cd5b077766b63.tar.xz
time-admin: Save button cannot be enabled if NTP sync is active
Diffstat (limited to 'capplets/time-admin/src/main.c')
-rw-r--r--capplets/time-admin/src/main.c2
1 files changed, 1 insertions, 1 deletions
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,