From 2244503a5288cdc3c181f982e1c07a592127c0b8 Mon Sep 17 00:00:00 2001 From: fosero Date: Sun, 6 Mar 2016 23:19:47 +0100 Subject: [PATCH] edit-dialog: don't try to update locked events https://bugzilla.gnome.org/show_bug.cgi?id=763187 --- src/gcal-edit-dialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 4ed1c2df..603bf921 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -468,7 +468,7 @@ gcal_edit_dialog_action_button_clicked (GtkWidget *widget, dialog = GCAL_EDIT_DIALOG (user_data); - if (widget == dialog->cancel_button) + if (widget == dialog->cancel_button || (widget == dialog->done_button && !dialog->writable)) { gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL); }