beware to not overwrite valid UID with empty one (some tests broke due to this recent change)
git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@236 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
parent
b29a3edf66
commit
f7d31296cc
|
@ -350,7 +350,9 @@ int EvolutionCalendarSource::insertItem(SyncItem& item, bool update)
|
|||
|
||||
if (update) {
|
||||
// ensure that the component has the right UID - some servers replace it
|
||||
icalcomponent_set_uid(subcomp, item.getKey());
|
||||
if (item.getKey() && item.getKey()[0]) {
|
||||
icalcomponent_set_uid(subcomp, item.getKey());
|
||||
}
|
||||
|
||||
if (!e_cal_modify_object(m_calendar, subcomp, CALOBJ_MOD_ALL, &gerror)) {
|
||||
throwError(string("updating calendar item ") + item.getKey(), gerror);
|
||||
|
|
Loading…
Reference in New Issue