From f70702a885ee8884b6b7130606d01dc1ffd81690 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 8 Apr 2015 16:46:20 -0300 Subject: [PATCH] window: correctly set the source and mode Cannot change to edit mode without actually give the source to edit. --- src/gcal-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-window.c b/src/gcal-window.c index 5799d43e..6700148c 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -917,8 +917,8 @@ source_row_activated (GtkListBox *listbox, if (source == NULL) return; - gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT); gcal_source_dialog_set_source (GCAL_SOURCE_DIALOG (priv->source_dialog), source); + gcal_source_dialog_set_mode (GCAL_SOURCE_DIALOG (priv->source_dialog), GCAL_SOURCE_DIALOG_MODE_EDIT); gtk_widget_hide (priv->calendar_popover);