2007-01-09 17:58:05 +01:00
|
|
|
Index: calendar/backends/file/e-cal-backend-file.c
|
2007-03-16 10:09:45 +01:00
|
|
|
===================================================================
|
|
|
|
--- calendar/backends/file/e-cal-backend-file.c.orig
|
2007-01-09 17:58:05 +01:00
|
|
|
+++ calendar/backends/file/e-cal-backend-file.c
|
2007-03-16 10:09:45 +01:00
|
|
|
@@ -134,6 +134,7 @@ save_file_when_idle (gpointer user_data)
|
2007-01-09 17:58:05 +01:00
|
|
|
GnomeVFSFileSize out;
|
|
|
|
gchar *tmp, *backup_uristr;
|
|
|
|
char *buf;
|
|
|
|
+ char *error = NULL;
|
|
|
|
ECalBackendFile *cbfile = user_data;
|
|
|
|
|
|
|
|
priv = cbfile->priv;
|
2007-03-16 10:09:45 +01:00
|
|
|
@@ -206,12 +207,15 @@ save_file_when_idle (gpointer user_data)
|
|
|
|
g_static_rec_mutex_unlock (&priv->idle_save_rmutex);
|
2007-01-09 17:58:05 +01:00
|
|
|
e_cal_backend_notify_error (E_CAL_BACKEND (cbfile),
|
|
|
|
_("Cannot save calendar data: Malformed URI."));
|
|
|
|
- return TRUE;
|
|
|
|
+ return FALSE;
|
|
|
|
|
|
|
|
error:
|
2007-03-16 10:09:45 +01:00
|
|
|
g_static_rec_mutex_unlock (&priv->idle_save_rmutex);
|
2007-01-09 17:58:05 +01:00
|
|
|
- e_cal_backend_notify_error (E_CAL_BACKEND (cbfile), gnome_vfs_result_to_string (result));
|
|
|
|
- return TRUE;
|
2007-03-16 10:09:45 +01:00
|
|
|
+ /* error = g_strconcat (_("Can't save calendar data: "), gnome_vfs_result_to_string (result), NULL);
|
|
|
|
+ e_cal_backend_notify_error (E_CAL_BACKEND (cbfile), error);
|
|
|
|
+ g_free (error); */
|
|
|
|
+ e_cal_backend_notify_error (E_CAL_BACKEND (cbfile), gnome_vfs_result_to_string (result));
|
2007-01-09 17:58:05 +01:00
|
|
|
+ return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
2007-03-16 10:09:45 +01:00
|
|
|
@@ -526,8 +530,6 @@ add_component (ECalBackendFile *cbfile,
|
2007-01-09 17:58:05 +01:00
|
|
|
g_assert (icalcomp != NULL);
|
|
|
|
|
|
|
|
icalcomponent_add_component (priv->icalcomp, icalcomp);
|
|
|
|
-
|
|
|
|
- save (cbfile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|