[network-manager-applet/lr/team: 1/4] mm



commit 4792bc9f15bbbc1d6d84873e9fc2f58ef254dcfb
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Mon Jul 4 14:15:44 2016 +0200

    mm

 src/connection-editor/nm-connection-list.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 7f2b3c7..60090a4 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -857,9 +857,12 @@ nm_connection_list_new (void)
 
        gtk_window_set_default_icon_name ("preferences-system-network");
 
-       list->client = nm_client_new (NULL, NULL);
-       if (!list->client)
+       list->client = nm_client_new (NULL, &error);
+       if (!list->client) {
+               g_warning ("Couldn't construct the client instance: %s", error->message);
+               g_error_free (error);
                goto error;
+       }
        g_signal_connect (list->client,
                          NM_CLIENT_CONNECTION_ADDED,
                          G_CALLBACK (connection_added),


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