evolution-data-server/bnc-160147-cant-delete-created-calendar-accounts.patch

19 lines
761 B
Diff

Index: calendar/backends/caldav/e-cal-backend-caldav.c
===================================================================
RCS file: /cvs/gnome/evolution-data-server/calendar/backends/caldav/e-cal-backend-caldav.c,v
retrieving revision 1.5
diff -u -p -r1.5 e-cal-backend-caldav.c
--- calendar/backends/caldav/e-cal-backend-caldav.c 9 Feb 2006 06:12:05 -0000 1.5
+++ calendar/backends/caldav/e-cal-backend-caldav.c 23 Mar 2006 19:55:51 -0000
@@ -1491,6 +1491,10 @@ caldav_remove (ECalBackendSync *backend,
priv = E_CAL_BACKEND_CALDAV_GET_PRIVATE (cbdav);
g_mutex_lock (priv->lock);
+
+ if (priv->loaded != TRUE)
+ return GNOME_Evolution_Calendar_Success;
+
status = check_state (cbdav, &online);
if (status != GNOME_Evolution_Calendar_Success) {