network: don't show unmanaged devices

And in particular, in NM 0.9.10, don't show NM_DEVICE_TYPE_GENERIC
devices.

https://bugzilla.gnome.org/show_bug.cgi?id=706868
This commit is contained in:
Dan Winship 2013-09-10 08:49:36 -04:00
parent 015d29604a
commit fea9da1b2e

View file

@ -667,6 +667,9 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
GtkSizeGroup *size_group;
GType device_g_type;
if (!nm_device_get_managed (device))
goto out;
/* do we have an existing object with this id? */
if (find_in_model_by_id (panel, nm_device_get_udi (device), NULL) != NULL)
goto out;