edit-dialog: don't try to update locked events
https://bugzilla.gnome.org/show_bug.cgi?id=763187
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
e464eb6415
commit
2244503a52
@@ -468,7 +468,7 @@ gcal_edit_dialog_action_button_clicked (GtkWidget *widget,
|
|||||||
|
|
||||||
dialog = GCAL_EDIT_DIALOG (user_data);
|
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);
|
gtk_dialog_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user