From 4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 18 Jun 2004 16:10:52 +0000 Subject: Fixes #58747 2004-06-18 Rodrigo Moya Fixes #58747 * gui/dialogs/comp-editor.c (prompt_to_save_changes): if the source is read only, don't prompt the user. svn path=/trunk/; revision=26420 --- calendar/ChangeLog | 7 +++++++ calendar/gui/dialogs/comp-editor.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index ac02853885..c2611bb544 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2004-06-18 Rodrigo Moya + + Fixes #58747 + + * gui/dialogs/comp-editor.c (prompt_to_save_changes): if the source + is read only, don't prompt the user. + 2004-06-18 Rodrigo Moya Fixes #56323 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)) -- cgit