2007-12-19 14:43:47 +01:00
|
|
|
=== modified file 'calendar/backends/file/e-cal-backend-file.c'
|
|
|
|
--- calendar/backends/file/e-cal-backend-file.c 2007-12-18 16:36:30 +0000
|
|
|
|
+++ calendar/backends/file/e-cal-backend-file.c 2007-12-18 16:42:10 +0000
|
|
|
|
@@ -128,6 +128,7 @@
|
2007-01-09 17:58:05 +01:00
|
|
|
GnomeVFSFileSize out;
|
|
|
|
gchar *tmp, *backup_uristr;
|
|
|
|
char *buf;
|
|
|
|
+ char *error = NULL;
|
|
|
|
ECalBackendFile *cbfile = user_data;
|
2007-12-19 14:43:47 +01:00
|
|
|
|
2007-01-09 17:58:05 +01:00
|
|
|
priv = cbfile->priv;
|
2007-12-19 14:43:47 +01:00
|
|
|
@@ -200,12 +201,15 @@
|
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),
|
|
|
|
_("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-12-19 14:43:47 +01:00
|
|
|
@@ -520,8 +524,6 @@
|
2007-01-09 17:58:05 +01:00
|
|
|
g_assert (icalcomp != NULL);
|
|
|
|
|
|
|
|
icalcomponent_add_component (priv->icalcomp, icalcomp);
|
|
|
|
-
|
|
|
|
- save (cbfile);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-12-19 14:43:47 +01:00
|
|
|
|