From a71fd4b47943daf59597ecac6034c22d03cf007e Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Sat, 13 May 2006 07:58:02 +0000 Subject: Patch suggested by Yu-Hui Liu Check for timezone before passing the 2006-05-13 Harish Krishnaswamy Patch suggested by Yu-Hui Liu * conduits/todo/todo-conduit.c: (pre_sync): Check for timezone before passing the context. svn path=/trunk/; revision=31981 --- calendar/conduits/todo/todo-conduit.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'calendar/conduits') diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index c81a4a6817..9a00d46364 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -1027,12 +1027,6 @@ pre_sync (GnomePilotConduit *conduit, ctxt->dbi = dbi; ctxt->client = NULL; - - if (start_calendar_server (ctxt) != 0) { - WARN(_("Could not start evolution-data-server")); - gnome_pilot_conduit_error (conduit, _("Could not start evolution-data-server")); - return -1; - } /* Get the timezone */ ctxt->timezone = get_default_timezone (); @@ -1040,6 +1034,12 @@ pre_sync (GnomePilotConduit *conduit, return -1; LOG (g_message ( " Using timezone: %s", icaltimezone_get_tzid (ctxt->timezone) )); + if (start_calendar_server (ctxt) != 0) { + WARN(_("Could not start evolution-data-server")); + gnome_pilot_conduit_error (conduit, _("Could not start evolution-data-server")); + return -1; + } + /* Get the default component */ if (!e_cal_get_default_object (ctxt->client, &icalcomp, NULL)) return -1; -- cgit v1.2.3