[evolution-mapi] Return error code when trying to modify single instance



commit ee70579c1013824f49966940a8edbd5463f398b9
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 15 12:36:14 2010 +0100

    Return error code when trying to modify single instance
    
    Follow up of the previous commit. Exchange-MAPI calendar cannot
    modify single instance yet, so it reported an error message, but
    status code was success, which made behave caller incorrectly.

 src/calendar/e-cal-backend-mapi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index 188cca6..6234126 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -1606,7 +1606,7 @@ e_cal_backend_mapi_modify_object (ECalBackendSync *backend, EDataCal *cal, const
 
 	if (mod != CALOBJ_MOD_ALL) {
 		e_cal_backend_notify_error (E_CAL_BACKEND (cbmapi), _("Support for modifying single instances of a recurring appointment is not yet implemented. No change was made to the appointment on the server.")); 
-		return GNOME_Evolution_Calendar_Success;
+		return GNOME_Evolution_Calendar_OtherError;
 	}
 
 	/* check the component for validity */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]