[evolution-mapi] Do not notify about readonly mode when not asked



commit 82deeedede2e423da9c615f939706280d08740b5
Author: Milan Crha <mcrha redhat com>
Date:   Tue Apr 28 13:59:33 2009 +0200

    Do not notify about readonly mode when not asked
    
    	** Fix for bug #553932
---
 src/calendar/ChangeLog            |    7 +++++++
 src/calendar/e-cal-backend-mapi.c |    2 --
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/calendar/ChangeLog b/src/calendar/ChangeLog
index 10032b0..6c69bd3 100644
--- a/src/calendar/ChangeLog
+++ b/src/calendar/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-28  Milan Crha  <mcrha redhat com>
+
+	** Part of fix for bug #553932
+
+	* e-cal-backend-mapi.c: (e_cal_backend_mapi_set_mode):
+	Do not notify about readonly state here, we are not asked for that.
+
 2009-02-20  Milan Crha  <mcrha redhat com>
 
 	* e-cal-backend-mapi.c: Fix for compiler warnings.
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index 2480807..adf7d3c 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -2267,7 +2267,6 @@ e_cal_backend_mapi_set_mode (ECalBackend *backend, CalMode mode)
 			priv->read_only = FALSE;
 			e_cal_backend_notify_mode (backend, GNOME_Evolution_Calendar_CalListener_MODE_SET,
 					GNOME_Evolution_Calendar_MODE_REMOTE);
-			e_cal_backend_notify_readonly (backend, priv->read_only);
 			if (e_cal_backend_mapi_is_loaded (backend) && re_open)
 		              e_cal_backend_notify_auth_required(backend);
 			break;
@@ -2277,7 +2276,6 @@ e_cal_backend_mapi_set_mode (ECalBackend *backend, CalMode mode)
 			/* do we have to close the connection here ? */
 			e_cal_backend_notify_mode (backend, GNOME_Evolution_Calendar_CalListener_MODE_SET,
 					GNOME_Evolution_Calendar_MODE_REMOTE);
-			e_cal_backend_notify_readonly (backend, priv->read_only);
 			break;
 		default:
 			e_cal_backend_notify_mode (backend, GNOME_Evolution_Calendar_CalListener_MODE_NOT_SUPPORTED,



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