aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@novell.com>2004-06-19 00:10:52 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-06-19 00:10:52 +0800
commit4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022 (patch)
tree3be73dca59c11a6b3d6c166508ae40827a3e1c12 /calendar/gui
parent3e8a4428fe1b92bbc4aca2d719ae55a1b8ccf8a3 (diff)
downloadgsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.gz
gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.zst
gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.zip
Fixes #58747
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. svn path=/trunk/; revision=26420
Diffstat (limited to 'calendar/gui')
-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))