From 9fea242f7251cba16a2c2a85d2b780acb9b6e916 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 20 Oct 2017 10:37:11 +0200 Subject: manager: fix evaluation of manager state The state should be set to CONNECTED_GLOBAL only when there is full connectivity. Fixes: 9d43869e473b47542520c807dace93a6f9520964 https://bugzilla.gnome.org/show_bug.cgi?id=785281 (cherry picked from commit ebb30c53cd636069a7391fed4f5b6e4dc970d861) --- src/nm-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-manager.c b/src/nm-manager.c index 7662c2e34..9744c4da2 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -827,7 +827,7 @@ find_best_device_state (NMManager *manager) case NM_ACTIVE_CONNECTION_STATE_ACTIVATED: if ( nm_active_connection_get_default (ac) || nm_active_connection_get_default6 (ac)) { - if (priv->connectivity_state) + if (priv->connectivity_state == NM_CONNECTIVITY_FULL) return NM_STATE_CONNECTED_GLOBAL; best_state = NM_STATE_CONNECTED_SITE; -- cgit v1.2.3