[gnome-calendar] manager: fix refreshing condition
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] manager: fix refreshing condition
- Date: Sat, 3 Jan 2015 15:11:14 +0000 (UTC)
commit ecb4cb24d6e30eff328ce79f0066ac3a67348d0a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jan 3 13:11:00 2015 -0200
manager: fix refreshing condition
GcalManager shouldn't refresh when it's not enabled or when refreshing is not supported, not strictly
both of them.
src/gcal-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 3acc665..56768de 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]