window: correctly set the source and mode

Cannot change to edit mode without actually
give the source to edit.
This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:31 -04:00
committed by Erick Pérez Castellanos
parent 55613280cc
commit f70702a885
+1 -1
View File
@@ -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);