manager: fix refreshing condition

GcalManager shouldn't refresh when it's not enabled or when refreshing is not supported, not strictly both of them.
This commit is contained in:
Georges Basile Stavracas Neto
2015-01-03 13:11:00 -02:00
parent 6915522ecc
commit ecb4cb24d6
+1 -1
View File
@@ -912,7 +912,7 @@ gcal_manager_refresh (GcalManager *manager)
{
GcalManagerUnit *unit = l->data;
if (!unit->connected && ! e_client_check_refresh_supported (E_CLIENT (unit->client)))
if (!unit->connected || ! e_client_check_refresh_supported (E_CLIENT (unit->client)))
continue;
e_client_refresh (E_CLIENT (unit->client),