[evolution-data-server] evo-I#479 - Call mail account refresh also after going online



commit 40d332209dbb4235cc812f8d11cc626bb85eb801
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 14 08:51:22 2019 +0200

    evo-I#479 - Call mail account refresh also after going online
    
    Related to https://gitlab.gnome.org/GNOME/evolution/issues/479

 src/camel/camel-offline-store.c | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/camel/camel-offline-store.c b/src/camel/camel-offline-store.c
index 73793493d..d14929858 100644
--- a/src/camel/camel-offline-store.c
+++ b/src/camel/camel-offline-store.c
@@ -153,6 +153,15 @@ offline_store_notify (GObject *object,
 {
        if (g_strcmp0 (pspec->name, "host-reachable") == 0)
                g_object_notify (object, "online");
+       else if (g_strcmp0 (pspec->name, "connection-status") == 0 &&
+                camel_service_get_connection_status (CAMEL_SERVICE (object)) == CAMEL_SERVICE_DISCONNECTED) {
+               CamelOfflineStore *store = CAMEL_OFFLINE_STORE (object);
+
+               if (store->priv->online) {
+                       store->priv->online = FALSE;
+                       g_object_notify (object, "online");
+               }
+       }
 
        /* Chain up to parent's notify() method. */
        G_OBJECT_CLASS (camel_offline_store_parent_class)->


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