[gnome-bluetooth] lib: Fix removal of device and adapters
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Fix removal of device and adapters
- Date: Sun, 26 Nov 2017 16:16:02 +0000 (UTC)
commit f5af59ea9c650f1b2068ab08b0ba4f5178e8bcf9
Author: Benjamin Berg <bberg redhat com>
Date: Fri Nov 24 22:52:24 2017 +0100
lib: Fix removal of device and adapters
The interface_add routine was checking for the interfaces in the wrong
way. This means that no interface removal worked and devices would not
disappear from the list.
https://bugzilla.gnome.org/show_bug.cgi?id=790801
lib/bluetooth-client.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index f8cf080..f3d3d90 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -710,12 +710,12 @@ interface_removed (GDBusObjectManager *manager,
{
BluetoothClient *client = user_data;
- if (IS_ADAPTER1 (object)) {
+ if (IS_ADAPTER1 (interface)) {
adapter_removed (manager,
- g_dbus_proxy_get_object_path (G_DBUS_PROXY (object)),
+ g_dbus_object_get_object_path (object),
client);
- } else if (IS_DEVICE1 (object)) {
- device_removed (g_dbus_proxy_get_object_path (G_DBUS_PROXY (object)),
+ } else if (IS_DEVICE1 (interface)) {
+ device_removed (g_dbus_object_get_object_path (object),
client);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]