[evolution-data-server] Set ESource's connection-status to disconnected on EBackend's dispose



commit 7f373b1b212f243e8af27955490f256ade29129c
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 4 12:03:22 2015 +0100

    Set ESource's connection-status to disconnected on EBackend's dispose
    
    As long as the ESource is associated with only one EBackend instance,
    which it is, then the backend dispose means that the source is not
    connected anymore, thus mark it as such. This may allow to not show
    credential prompts for sources which are not interested in them anymore.

 libebackend/e-backend.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libebackend/e-backend.c b/libebackend/e-backend.c
index 4398e76..5f11224 100644
--- a/libebackend/e-backend.c
+++ b/libebackend/e-backend.c
@@ -496,6 +496,7 @@ backend_dispose (GObject *object)
 
        if (priv->source) {
                g_signal_handlers_disconnect_by_func (priv->source, backend_source_authenticate_cb, object);
+               e_source_set_connection_status (priv->source, E_SOURCE_CONNECTION_STATUS_DISCONNECTED);
        }
 
        g_mutex_lock (&priv->authenticate_cancellable_lock);


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