[gnome-control-center] network: Fix warning when Wi-Fi connections are removed



commit 7250d49513193ea78abe5c5f71c50ef742a45b73
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 7 15:38:32 2016 +0200

    network: Fix warning when Wi-Fi connections are removed
    
    Bug introduced with the fix from 199bd2c. For Wi-Fi, a row might not
    have an associated connection.

 panels/network/net-device-wifi.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index f645c5f..f162de7 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1361,6 +1361,9 @@ client_connection_removed_cb (NMClient           *client,
                 const char *uuid_r;
 
                 connection = g_object_get_data (G_OBJECT (row), "connection");
+                if (!connection)
+                        continue;
+
                 uuid_r = nm_connection_get_uuid (connection);
                 if (g_strcmp0 (uuid_r, uuid) == 0) {
                         gtk_widget_destroy (row);


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