[gnome-bluetooth] wizard: Fix setup for devices that don't pair
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: Fix setup for devices that don't pair
- Date: Tue, 12 Jun 2012 09:53:43 +0000 (UTC)
commit 7d7a893160577f55e75d91bdc1053d30b58f7a3c
Author: Bastien Nocera <hadess hadess net>
Date: Tue Jun 12 02:29:26 2012 +0200
wizard: Fix setup for devices that don't pair
The PS3 BD Remote for example doesn't need a pincode, and we
should poke at it without a pairing path. The comparison though
was based on user_pincode being set when it's actually set and
unset within the same function.
wizard/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 2d64bfb..417c84c 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -494,7 +494,7 @@ void prepare_callback (GtkWidget *assistant,
NULL);
/* Do we pair, or don't we? */
- if (g_strcmp0 (user_pincode, "NULL") == 0)
+ if (automatic_pincode && pincode == NULL)
path = NULL;
g_object_ref(agent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]