diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-06-19 00:10:52 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-06-19 00:10:52 +0800 |
commit | 4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022 (patch) | |
tree | 3be73dca59c11a6b3d6c166508ae40827a3e1c12 /calendar | |
parent | 3e8a4428fe1b92bbc4aca2d719ae55a1b8ccf8a3 (diff) | |
download | gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.gz gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.bz2 gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.lz gsoc2013-evolution-4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022.tar.xz 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')
-rw-r--r-- | calendar/ChangeLog | 7 | ||||
-rw-r--r-- | calendar/gui/dialogs/comp-editor.c | 4 |
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)) |