From aa9b83a92ededd20104929476322dc17486eb42d Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 20 Feb 2017 08:27:48 -0300 Subject: [PATCH] window: reset edit dialog's event on response Currently, we keep the to-be-edited event of the Edit dialog when it sends any response. However, this can cause issues since we can edit the event, press Esc and see that the event didn't change but Edit dialog keeps the changes. Fix that by always resetting the edited event to NULL after a response. https://bugzilla.gnome.org/show_bug.cgi?id=778644 --- src/gcal-window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gcal-window.c b/src/gcal-window.c index d9cfc711..7a0cbf0e 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -1131,6 +1131,7 @@ edit_dialog_closed (GtkDialog *dialog, event = gcal_edit_dialog_get_event (edit_dialog); view = GCAL_VIEW (window->views[window->active_view]); + gcal_edit_dialog_set_event (edit_dialog, NULL); gtk_widget_hide (GTK_WIDGET (dialog)); switch (response)