aboutsummaryrefslogtreecommitdiff
path: root/src/datetime-service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datetime-service.c')
-rw-r--r--src/datetime-service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 432657d..0894e83 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -233,10 +233,14 @@ static void
quick_set_tz (DbusmenuMenuitem * menuitem, guint timestamp, gpointer user_data)
{
const gchar * tz = dbusmenu_menuitem_property_get(menuitem, TIMEZONE_MENUITEM_PROP_LABEL);
+
g_debug("Quick setting timezone to: %s", tz);
g_return_if_fail(tz != NULL);
+ if (g_strcmp0(tz, current_timezone) == 0)
+ return;
+
OobsObject * obj = oobs_time_config_get();
g_return_if_fail(obj != NULL);