[gnome-bluetooth/gnome-3-10] wizard: Fix PIN database not being used



commit 24029f70ad528473e0c9a7f9cb206ba60a78890f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 13 15:51:02 2013 +0100

    wizard: Fix PIN database not being used
    
    We would get data from the PIN code database, but never actually
    set that to be the selected PIN code.

 wizard/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 7a94692..5d9de95 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -573,6 +573,9 @@ void prepare_callback (GtkWidget *assistant,
                                        target_ui_behaviour = PAIRING_UI_ICADE;
 
                                gtk_entry_set_max_length (GTK_ENTRY (entry_custom), target_max_digits);
+
+                               g_free (user_pincode);
+                               user_pincode = g_strdup (pincode);
                        }
                }
 


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