edit-dialog: don't try to update locked events

https://bugzilla.gnome.org/show_bug.cgi?id=763187
This commit is contained in:
fosero
2016-03-06 19:27:32 -03:00
committed by Georges Basile Stavracas Neto
parent e464eb6415
commit 2244503a52
+1 -1
View File
@@ -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);
}