[gnome-bluetooth] wizard: fix the "Do not pair" choice in the dialog



commit 88e0eed221a32e4c770c40b635f43176e021b081
Author: Daniele Forsi <dforsi src gnome org>
Date:   Sun Dec 18 17:44:48 2011 +0100

    wizard: fix the "Do not pair" choice in the dialog
    
    The choice in the dialog was overridden by the value read from the
    PIN database.

 wizard/main.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index a87920a..4b3eb16 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -454,7 +454,6 @@ void prepare_callback (GtkWidget *assistant,
 
 	if ((page == page_setup || page == page_connecting) && (create_started == FALSE)) {
 		const char *path = AGENT_PATH;
-		char *pin_ret;
 
 		/* Set the filter on the selector, so we can use it to get more
 		 * info later, in page_summary */
@@ -463,10 +462,8 @@ void prepare_callback (GtkWidget *assistant,
 			      NULL);
 
 		/* Do we pair, or don't we? */
-		pin_ret = get_pincode_for_device (target_type, target_address, target_name, NULL);
-		if (pin_ret != NULL && g_str_equal (pin_ret, "NULL"))
+		if (g_strcmp0 (user_pincode, "NULL") == 0)
 			path = NULL;
-		g_free (pin_ret);
 
 		g_object_ref(agent);
 		bluetooth_client_create_device (client, target_address,



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