calendar file backend: fixed incomplete sanity check in e_cal_create_object()
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 9 Aug 2011 08:26:16 +0000 (11:26 +0300)
committerPatrick Ohly <patrick.ohly@intel.com>
Wed, 10 Aug 2011 16:05:56 +0000 (18:05 +0200)
commit0c178bbab1008a8574d58c2019c22f892010d9a0
tree7bfa673d4fdab3ab4f8700413f9d55475ac72c7f
parentae4f4292b0e5ecbbdc74c90b75cc31367d0d270a
calendar file backend: fixed incomplete sanity check in e_cal_create_object()

e_cal_create_object() traditionally is used for a new events which are
unrelated to anything in the calendar. Adding detached recurrences
to an existing meeting series has to be done with e_cal_modify_object().

The code did not correctly reject the addition of a parent event for a
previously added child event event because lookup_component() returned
NULL in that case.

This commit renames lookup_component() and redefines the return value
to match what it is used for: checking for the existance of a UID.
calendar/backends/file/e-cal-backend-file.c