After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 770218 - Sometimes "Enable Wi-Fi" toggle is checked when it's actually soft blocked by rfkill.
Sometimes "Enable Wi-Fi" toggle is checked when it's actually soft blocked by...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nm-applet
1.2.x
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-08-22 07:35 UTC by Kai-Heng Feng
Modified: 2016-08-30 14:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch to fix this issue. (1.87 KB, patch)
2016-08-22 07:50 UTC, Kai-Heng Feng
none Details | Review

Description Kai-Heng Feng 2016-08-22 07:35:45 UTC
This bug can be more easily to be reproduced when there's no active wireless connection.

After rfkill status changed, nm-applet refresh its menu by receiving "state-changed" signal, but wireless_enabled_cb() in libnm/nm-manager.c may be called after the signal.

If that's the case, nm-applet will get wrong status from nm_client_networking_get_enabled(), because wireless_enabled is not being update yet.
Comment 1 Kai-Heng Feng 2016-08-22 07:50:19 UTC
Created attachment 333861 [details] [review]
A patch to fix this issue.