[gnome-bluetooth] settings: Fix turning off pairing after connecting



commit 014a9522d45e8052106cfe48ce2dcfedb54584d0
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Dec 6 17:48:44 2013 +0100

    settings: Fix turning off pairing after connecting
    
    After the connection finishes (whether it works or not), use
    the correct argument to turn off pairing.

 lib/bluetooth-settings-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 5847cc6..5223f66 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -624,7 +624,7 @@ connect_callback (GObject      *source_object,
                g_debug ("Failed to connect to device %s", data->device);
        }
 
-       turn_off_pairing (user_data, data->device);
+       turn_off_pairing (data->self, data->device);
 
 bail:
        if (data->timeout_id > 0)


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