[gnome-bluetooth] Don't try to get a pincode when there's no device selected
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Don't try to get a pincode when there's no device selected
- Date: Thu, 25 Jun 2009 12:54:00 +0000 (UTC)
commit 41c88f5b949fc8086b65250b59403fe2d9951bb9
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jun 25 13:52:15 2009 +0100
Don't try to get a pincode when there's no device selected
When we lose the devices, the selection goes to NULL, thus,
we can't have a pin for it.
wizard/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 849a28f..44cbddf 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -777,7 +777,7 @@ select_device_changed (BluetoothChooser *selector,
if (user_pincode != NULL && *user_pincode != '\0') {
pincode = g_strdup (user_pincode);
automatic_pincode = TRUE;
- } else {
+ } else if (address != NULL) {
guint max_digits;
pincode = get_pincode_for_device(target_type, target_address, target_name, &max_digits);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]