aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Piessens <piessens@icsense.com>2011-11-25 21:36:42 +0800
committerMilan Crha <mcrha@redhat.com>2011-11-25 21:36:42 +0800
commit993d4910c16bc1f8cf1d0b2ad69f8b4ea324f7f7 (patch)
treecf8b1b9698e0120ff27a5a423abcc5e304a7d015
parenteabcec7ecf6ab774f382c3b1336883bebb5077c2 (diff)
downloadgsoc2013-evolution-993d4910c16bc1f8cf1d0b2ad69f8b4ea324f7f7.tar.gz
gsoc2013-evolution-993d4910c16bc1f8cf1d0b2ad69f8b4ea324f7f7.tar.zst
gsoc2013-evolution-993d4910c16bc1f8cf1d0b2ad69f8b4ea324f7f7.zip
Bug #616561 - Don't check read-only calendars in the itip-formatter
-rw-r--r--plugins/itip-formatter/itip-formatter.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 0d80086342..7a66508500 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -1009,6 +1009,13 @@ find_cal_opened_cb (GObject *source_object,
g_return_if_fail (E_IS_CAL_CLIENT (client));
+ /* Do not process read-only calendars */
+ if (e_client_is_readonly (client)) {
+ g_object_unref (client);
+ decrease_find_data (fd);
+ return;
+ }
+
cal_client = E_CAL_CLIENT (client);
source_type = e_cal_client_get_source_type (cal_client);