[gnome-bluetooth] wizard: do not proceed if device was deselected
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: do not proceed if device was deselected
- Date: Fri, 25 Nov 2011 10:41:11 +0000 (UTC)
commit f38043548dfc8fd1cda289bc2b4a3ce7d1c67a5d
Author: Daniele Forsi <dforsi src gnome org>
Date: Tue Nov 22 11:38:50 2011 +0100
wizard: do not proceed if device was deselected
There is no address to connect to and set_page_search_complete () has
made the Forward button insensitive. This happens when a Bluetooth
dongle is unplugged or when the user Ctrl-clicks a previously selected
device.
wizard/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index c5ede2b..c3e2f49 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -701,6 +701,10 @@ select_device_changed (BluetoothChooser *selector,
set_page_search_complete ();
+ /* Device was deselected */
+ if (address == NULL)
+ return;
+
name = bluetooth_chooser_get_selected_device_name (selector);
type = bluetooth_chooser_get_selected_device_type (selector);
if (bluetooth_chooser_get_selected_device_info (selector, "legacypairing", &value) != FALSE) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]