Commit bc343b97 authored by Robert Love's avatar Robert Love Committed by Robert Love
Browse files

2005-06-27 Robert Love <rml@novell.com>

	* src/nm-dbus-nm.c: fix "setWirelessEnabled" call for the enabling
	  case.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@760 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent a458311b
2005-06-27 Robert Love <rml@novell.com>
* src/nm-dbus-nm.c: fix "setWirelessEnabled" call for the enabling
case.
2005-06-27 Robert Love <rml@novell.com>
* gnome/applet/applet.c: make the 'Wireless Network Discovery' menu
......
......@@ -345,17 +345,20 @@ static DBusMessage *nm_dbus_nm_set_wireless_enabled (DBusConnection *connection,
{
gboolean enabled = FALSE;
DBusError err;
NMData *app_data;
g_return_val_if_fail (data && data->data && connection && message, NULL);
dbus_error_init (&err);
if (dbus_message_get_args (message, &err, DBUS_TYPE_BOOLEAN, &enabled, DBUS_TYPE_INVALID))
if (!dbus_message_get_args (message, &err, DBUS_TYPE_BOOLEAN, &enabled, DBUS_TYPE_INVALID))
return NULL;
app_data = data->data;
app_data->wireless_enabled = enabled;
if (!enabled)
{
GSList *elt;
NMData *app_data;
app_data = data->data;
app_data->wireless_enabled = enabled;
/* Physically down all wireless devices */
nm_lock_mutex (app_data->dev_list_mutex, __FUNCTION__);
......@@ -369,9 +372,10 @@ static DBusMessage *nm_dbus_nm_set_wireless_enabled (DBusConnection *connection,
}
}
nm_unlock_mutex (app_data->dev_list_mutex, __FUNCTION__);
nm_policy_schedule_device_change_check (data->data);
}
nm_policy_schedule_device_change_check (data->data);
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment