source-manager: don't try to save NULL sources

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:31:07 -04:00
committed by Erick Pérez Castellanos
parent d6b4aef582
commit 3c5a1ebfe6
+2 -1
View File
@@ -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);
}
}