[gnome-bluetooth] Bug 578989 – Allow going through when name isn't resolved if pin is fixed



commit 5f616a0870d503511b529925da8f9c4b83bfc87f
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 27 11:15:06 2009 +0100

    Bug 578989 â?? Allow going through when name isn't resolved if pin is fixed
    
    Check whether we have a fixed pincode when the name isn't resolved yet.
---
 wizard/main.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/wizard/main.c b/wizard/main.c
index 0b49c02..7922551 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -354,7 +354,11 @@ set_page_search_complete (void)
 		      "device-selected-name", &name,
 		      NULL);
 
-	if (address != NULL && name != NULL)
+	if (address == NULL)
+		complete = FALSE;
+	else if (name == NULL)
+		complete = (user_pincode != NULL && strlen(user_pincode) >= 4);
+	else
 		complete = (user_pincode == NULL || strlen(user_pincode) >= 4);
 
 	g_free (address);



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