aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/gui/dialogs/comp-editor.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index ac02853885..c2611bb544 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,12 @@
2004-06-18 Rodrigo Moya <rodrigo@novell.com>
+ 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 <rodrigo@novell.com>
+
Fixes #56323
* gui/calendar-component.c (create_new_event): removed read-only
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))