aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2006-05-13 15:58:02 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2006-05-13 15:58:02 +0800
commita71fd4b47943daf59597ecac6034c22d03cf007e (patch)
treef0698c955ede4a9cdbe5e498c8a96ae5b2d068b6 /calendar/conduits
parent783f44840ac69f8bf98870c02cd971a370d4caff (diff)
downloadgsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar.gz
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar.bz2
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar.lz
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar.xz
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.tar.zst
gsoc2013-evolution-a71fd4b47943daf59597ecac6034c22d03cf007e.zip
Patch suggested by Yu-Hui Liu Check for timezone before passing the
2006-05-13 Harish Krishnaswamy <kharish@novell.com> 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
Diffstat (limited to 'calendar/conduits')
-rw-r--r--calendar/conduits/todo/todo-conduit.c12
1 files changed, 6 insertions, 6 deletions
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;