[gnome-calendar] window: reset edit dialog's event on response



commit aa9b83a92ededd20104929476322dc17486eb42d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Feb 20 08:27:48 2017 -0300

    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 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index d9cfc71..7a0cbf0 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)


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