network: Fix 8021x connections

We were always throwing away requests to connect to 8021x
APs, due to missing braces.

https://bugzilla.gnome.org/show_bug.cgi?id=686244
This commit is contained in:
Matthias Clasen 2012-10-16 14:36:16 -04:00 committed by Bastien Nocera
parent 0d9fd1005f
commit 85dbe01725

View file

@ -139,9 +139,10 @@ verify_argv (CcNetworkPanel *self,
case OPERATION_CONNECT_MOBILE:
case OPERATION_CONNECT_8021X:
case OPERATION_SHOW_DEVICE:
if (self->priv->arg_device == NULL)
if (self->priv->arg_device == NULL) {
g_warning ("Operation %s requires an object path", args[0]);
return FALSE;
return FALSE;
}
default:
return TRUE;
}