[gnome-bluetooth] Ignore make_discoverable requests if we have no BT
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] Ignore make_discoverable requests if we have no BT
- Date: Thu, 15 Apr 2010 15:41:41 +0000 (UTC)
commit b0e9821c1f9ac00b78f8006134282c071c99dfad
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]