[gnome-settings-daemon] usb-protection: Fix wrong g_variant child index



commit 18cb45ee64c88a9f65aeac104a0c4cdf83ea63dc
Author: Ludovico de Nittis <ludovico denittis collabora com>
Date:   Sat Feb 29 21:29:04 2020 +0100

    usb-protection: Fix wrong g_variant child index

 plugins/usb-protection/gsd-usb-protection-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/usb-protection/gsd-usb-protection-manager.c 
b/plugins/usb-protection/gsd-usb-protection-manager.c
index daaf7771..bdbbf6c7 100644
--- a/plugins/usb-protection/gsd-usb-protection-manager.c
+++ b/plugins/usb-protection/gsd-usb-protection-manager.c
@@ -429,7 +429,7 @@ is_only_hid (GVariant *device)
         guint i;
         gboolean only_hid = TRUE;
 
-        g_variant_get_child (device, POLICY_ATTRIBUTES, "a{ss}", &iter);
+        g_variant_get_child (device, PRESENCE_ATTRIBUTES, "a{ss}", &iter);
         while (g_variant_iter_loop (iter, "{ss}", &name, &value)) {
                 if (g_strcmp0 (name, WITH_INTERFACE) == 0) {
                         g_auto(GStrv) interfaces_splitted = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]