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:
parent
015d29604a
commit
fea9da1b2e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue