[network-manager-netbook] Fix wifi autoconnect after wifi disable/enable.
- From: Tambet Ingo <tambeti src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-netbook] Fix wifi autoconnect after wifi disable/enable.
- Date: Tue, 6 Oct 2009 06:19:49 +0000 (UTC)
commit 2753f126bdf543546567d86dcfd327f0afce2e80
Author: Tambet Ingo <tambet gmail com>
Date: Mon Oct 5 14:34:01 2009 +0300
Fix wifi autoconnect after wifi disable/enable.
src/nmn-wifi-item.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/nmn-wifi-item.c b/src/nmn-wifi-item.c
index 139414b..0ee9d2c 100644
--- a/src/nmn-wifi-item.c
+++ b/src/nmn-wifi-item.c
@@ -487,8 +487,11 @@ connect (NmnNetworkItem *item)
static void
disconnect (NmnNetworkItem *item)
{
- /* Turn off autoconnect, otherwise it would reconnect right back. */
- update_autoconnect (item, FALSE);
+ if (nmn_nm_data_wifi_get_active (nmn_network_item_get_nm_data (NMN_NETWORK_ITEM (item)))) {
+ /* Turn off autoconnect, otherwise it would reconnect right back. */
+ update_autoconnect (item, FALSE);
+ }
+
NMN_NETWORK_ITEM_CLASS (nmn_wifi_item_parent_class)->disconnect (item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]