diff options
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r-- | calendar/gui/e-itip-control.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index f2415aaf33..56979ed85b 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -149,7 +149,6 @@ cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) EItipControlPrivate *priv; ESource *source; ECalSourceType source_type; - icaltimezone *zone; priv = itip->priv; @@ -164,9 +163,6 @@ cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) return; } - zone = calendar_config_get_icaltimezone (); - e_cal_set_default_timezone (ecal, zone, NULL); - priv->current_ecal = ecal; set_ok_sens (itip); } @@ -178,6 +174,7 @@ start_calendar_server (EItipControl *itip, ESource *source, ECalSourceType type, { EItipControlPrivate *priv; ECal *ecal; + icaltimezone *zone; priv = itip->priv; @@ -189,6 +186,10 @@ start_calendar_server (EItipControl *itip, ESource *source, ECalSourceType type, } ecal = auth_new_cal_from_source (source, type); + + zone = calendar_config_get_icaltimezone (); + e_cal_set_default_timezone (ecal, zone, NULL); + g_signal_connect (G_OBJECT (ecal), "cal_opened", G_CALLBACK (func), data); g_hash_table_insert (priv->ecals[type], g_strdup (e_source_peek_uid (source)), ecal); @@ -246,7 +247,6 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) ESource *source; ECalSourceType source_type; icalcomponent *icalcomp; - icaltimezone *zone; source_type = e_cal_get_source_type (ecal); source = e_cal_get_source (ecal); @@ -270,9 +270,6 @@ find_cal_opened_cb (ECal *ecal, ECalendarStatus status, gpointer data) set_ok_sens (fd->itip); } - zone = calendar_config_get_icaltimezone (); - e_cal_set_default_timezone (ecal, zone, NULL); - cleanup: if (fd->count == 0) { if (fd->show_selector && !priv->current_ecal && priv->vbox) { |