aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorPeter Teichman <teichman@src.gnome.org>1999-08-02 11:47:49 +0800
committerPeter Teichman <teichman@src.gnome.org>1999-08-02 11:47:49 +0800
commitff875c37684edfa4a9349e2c1de66950de6b3091 (patch)
tree7f9d8a2bf4e60097ed85969cb9bb7531f7644da8 /calendar/gui
parentc54abe884b175add134cc07e8fda31ffa65cac26 (diff)
downloadgsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar.gz
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar.bz2
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar.lz
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar.xz
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.tar.zst
gsoc2013-evolution-ff875c37684edfa4a9349e2c1de66950de6b3091.zip
The multi-day appointment corruption bug is dead. Whoo!
* calendar-pilot-sync.c (sync_object_to_pilot): The multi-day appointment corruption bug is dead. Whoo! svn path=/trunk/; revision=1057
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-pilot-sync.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/calendar/gui/calendar-pilot-sync.c b/calendar/gui/calendar-pilot-sync.c
index 0b9d3b1206..12f15d33ad 100644
--- a/calendar/gui/calendar-pilot-sync.c
+++ b/calendar/gui/calendar-pilot-sync.c
@@ -396,14 +396,19 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
if ((a->end.tm_mday != a->begin.tm_mday) ||
(a->end.tm_mon != a->begin.tm_mon) ||
(a->end.tm_year != a->begin.tm_year)){
+ a->event = 1;
+ a->begin.tm_sec = 0;
+ a->begin.tm_min = 0;
+ a->begin.tm_hour = 0;
+
+ a->end.tm_sec = 0;
+ a->end.tm_min = 0;
+ a->end.tm_hour = 0;
a->repeatEnd = a->end;
a->repeatForever = 0;
- a->repeatFrequency = 0;
+ a->repeatFrequency = 1;
a->repeatType = repeatDaily;
- a->end.tm_mday = a->begin.tm_mday;
- a->end.tm_mon = a->begin.tm_mon;
- a->end.tm_year = a->begin.tm_year;
}
/*
@@ -447,6 +452,7 @@ sync_object_to_pilot (GNOME_Calendar_Repository repo, iCalObject *obj, int pilot
dlp_WriteRecord (
pilot_fd, db, 0,
obj->pilot_id, 0, buffer, rec_len, &new_id);
+
GNOME_Calendar_Repository_update_pilot_id (repo, obj->uid, new_id, ICAL_PILOT_SYNC_NONE, &ev);
free_Appointment (a);