From 3c5a1ebfe6bd77bbf4df5dce16ac65fe8a6f3a76 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 9 Feb 2015 17:23:30 -0200 Subject: [PATCH] source-manager: don't try to save NULL sources --- src/gcal-source-dialog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gcal-source-dialog.c b/src/gcal-source-dialog.c index e68f02fa..fc77a85a 100644 --- a/src/gcal-source-dialog.c +++ b/src/gcal-source-dialog.c @@ -214,7 +214,8 @@ response_signal (GtkDialog *dialog, /* save the source */ if (priv->mode == GCAL_SOURCE_DIALOG_MODE_EDIT || response_id == GTK_RESPONSE_APPLY) { - gcal_manager_save_source (priv->manager, priv->source); + if (priv->source) + gcal_manager_save_source (priv->manager, priv->source); } }