Added check to e_cal_client_new.

This commit is contained in:
Erick Pérez Castellanos
2012-05-25 12:20:24 -04:00
parent 8acac74152
commit 0fa5701210
+6
View File
@@ -424,6 +424,12 @@ _gcal_manager_load_source (GcalManager *manager,
priv = manager->priv;
error = NULL;
new_client = e_cal_client_new (source, E_CAL_CLIENT_SOURCE_TYPE_EVENTS, &error);
if (error != NULL)
{
g_warning ("Couldn't create ECalClient. Error: %s", error->message);
g_error_free (error);
return;
}
unit = g_new0 (GcalManagerUnit, 1);
unit->client = g_object_ref (new_client);