Skip to content

Commit

Permalink
Don't upsync local modifications if server side event is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Antti Seppälä committed Jan 13, 2015
1 parent 4ade9d2 commit 5b8155b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/google/google-calendars/googlecalendarsyncadaptor.cpp
Expand Up @@ -819,6 +819,9 @@ void GoogleCalendarSyncAdaptor::updateLocalCalendarNotebookEvents(int accountId,
// delete existing event.
remoteRemoved++;

// if modified locally and deleted on server side, don't upsync modifications
updatedMap.remove(eventId);

m_idDb.removeEvent(accountId, eventId);
if (allMap.contains(eventId)) {
m_calendar->deleteEvent(allMap.value(eventId));
Expand Down

0 comments on commit 5b8155b

Please sign in to comment.