[evolution-data-server/gnome-3-32] evo-I#479 - Call mail account refresh also after going online
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-32] evo-I#479 - Call mail account refresh also after going online
- Date: Fri, 14 Jun 2019 06:52:09 +0000 (UTC)
commit 58024b930854cf8b928b20167b3c319d7aab5568
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]