gnome-bluetooth/0001-Fix-pairing-with-devices-that-require-PIN-entry.patch
2009-09-11 14:02:59 +00:00

31 lines
895 B
Diff

From 33524bf400bfbf3c5fc5bdf23dc086f0d7d0875b Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 11 Sep 2009 14:58:25 +0100
Subject: [PATCH] Fix pairing with devices that require PIN entry
If a device that has a fixed PIN was selected before a device that
doesn't have one (for example, select a printer or audio headset,
before selecting a phone), then the automatic_pincode would have
been TRUE.
We need to reset the automatic_pincode every time we change devices.
---
wizard/main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/wizard/main.c b/wizard/main.c
index ac28573..5bf719d 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -775,6 +775,7 @@ select_device_changed (BluetoothChooser *selector,
target_type = type;
target_ssp = !legacypairing;
+ automatic_pincode = FALSE;
g_free (pincode);
pincode = NULL;
--
1.6.2.5