aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/comp-editor.c')
-rw-r--r--calendar/gui/dialogs/comp-editor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c
index ef3757cac7..9dcbf1d80a 100644
--- a/calendar/gui/dialogs/comp-editor.c
+++ b/calendar/gui/dialogs/comp-editor.c
@@ -498,12 +498,16 @@ static gboolean
prompt_to_save_changes (CompEditor *editor, gboolean send)
{
CompEditorPrivate *priv;
+ gboolean read_only;
priv = editor->priv;
if (!priv->changed)
return TRUE;
+ if (!e_cal_is_read_only (priv->client, &read_only, NULL) || read_only)
+ return TRUE;
+
switch (save_component_dialog (GTK_WINDOW (editor))) {
case GTK_RESPONSE_YES: /* Save */
if (e_cal_component_is_instance (priv->comp))