[gnome-bluetooth/meego-dev: 15/15] Ignore make_discoverable requests if we have no BT



commit f56b5c07253486b9087fee57a2709b7233781e4a
Author: Ross Burton <ross linux intel com>
Date:   Thu Feb 25 16:00:48 2010 +0000

    Ignore make_discoverable requests if we have no BT

 moblin/moblin-panel.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/moblin/moblin-panel.c b/moblin/moblin-panel.c
index 46056b1..3ef59b0 100644
--- a/moblin/moblin-panel.c
+++ b/moblin/moblin-panel.c
@@ -242,6 +242,9 @@ make_discoverable (MoblinPanel *panel)
 {
 	MoblinPanelPrivate *priv = MOBLIN_PANEL_GET_PRIVATE (panel);
 
+	if (bluetooth_powerswitch_get_state (priv->powerswitch) != POWERSWITCH_STATE_ON)
+		return;
+
 	bluetooth_client_set_discoverable (priv->client, TRUE, DISCOVER_TIMEOUT);
 
 	priv->visible_countdown = DISCOVER_TIMEOUT;



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