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); }