[gnome-calendar] edit-dialog: don't try to update locked events



commit 2244503a5288cdc3c181f982e1c07a592127c0b8
Author: fosero <fosero users noreply github com>
Date:   Sun Mar 6 23:19:47 2016 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c
index 4ed1c2d..603bf92 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);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]