[evolution-mapi] Always update local calendar content after successfully connected



commit fcfe3f03840a5a1c55a764a9a58ce9531b7bbc29
Author: Milan Crha <mcrha redhat com>
Date:   Wed Oct 15 11:10:02 2014 +0200

    Always update local calendar content after successfully connected

 src/calendar/e-cal-backend-mapi.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-mapi.c b/src/calendar/e-cal-backend-mapi.c
index d611ba3..9491f95 100644
--- a/src/calendar/e-cal-backend-mapi.c
+++ b/src/calendar/e-cal-backend-mapi.c
@@ -81,7 +81,6 @@ struct _ECalBackendMAPIPrivate {
        ECalBackendStore        *store;
        gboolean                read_only;
        gchar                   *uri;
-       gboolean                mode_changed;
        GMutex                  updating_mutex;
        GMutex                  is_updating_mutex;
        gboolean                is_updating;
@@ -1252,14 +1251,9 @@ ecbm_connect_user (ECalBackend *backend,
        if (priv->store && priv->fid) {
                e_backend_set_online (E_BACKEND (cbmapi), TRUE);
 
-               if (priv->mode_changed && !priv->dthread) {
-                       priv->mode_changed = FALSE;
-                       run_delta_thread (cbmapi);
-               }
+               run_delta_thread (cbmapi);
        }
 
-       priv->mode_changed = FALSE;
-
        return E_SOURCE_AUTHENTICATION_ACCEPTED;
 }
 
@@ -2558,7 +2552,6 @@ ecbm_notify_online_cb (ECalBackend *backend, GParamSpec *pspec)
 
        g_mutex_lock (&priv->mutex);
 
-       priv->mode_changed = TRUE;
        if (online) {
                priv->read_only = FALSE;
        } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]