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 576442 - Use services "connected", not device's property
Use services "connected", not device's property
Status: RESOLVED FIXED
Product: gnome-bluetooth
Classification: Core
Component: applet
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-bluetooth-general-maint@gnome.bugs
gnome-bluetooth-general-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-03-23 16:35 UTC by Bastien Nocera
Modified: 2009-03-27 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2009-03-23 16:35:16 UTC
When disconnecting a device, it might try to connect to us again. To avoid the menu item switching to connected again, and disconnected, we should use the services' statuses instead, not the device's property.

In update_device_list(), "connected" should be checking in the services hashtable, not the CONNECTED column.
Comment 1 Bastien Nocera 2009-03-27 09:22:03 UTC
Easier is to call Disconnect on the services instead.
Comment 2 Bastien Nocera 2009-03-27 10:18:49 UTC
That should fix the glitch:
http://svn.gnome.org/viewvc/gnome-bluetooth?view=revision&revision=550