[gnome-control-center] network: Do not print a critical warning when NetworkManager is restarted



commit 160697df6ca870efc153c77d32f42ffb05359c1d
Author: Richard Hughes <richard hughsie com>
Date:   Wed May 30 12:39:48 2012 +0100

    network: Do not print a critical warning when NetworkManager is restarted
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=676369

 panels/network/cc-network-panel.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 50fa7b3..4e82677 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -693,7 +693,8 @@ panel_refresh_killswitch_visibility (CcNetworkPanel *panel)
                                 break;
                         }
                 }
-                g_object_unref (object_tmp);
+                if (object_tmp != NULL)
+                        g_object_unref (object_tmp);
         } while (!show_flight_toggle && gtk_tree_model_iter_next (model, &iter));
 
         /* only show toggle if there are wireless devices */



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