petr bug
2007-10-28 14:03:46 UTC
Steps to reproduce:
To reproduce
1) Enable password protection on your device
2) Make sure synce-gnome/src/test.py is running (not synce-engine)
3) Plug the device to USB (or bluetoothe, not tested). Password dialog appears.
4) Unplug the device. The dialog is still on screen.
5) Press OK in the dialog
What happens: Dialog remains open, the click was ignored. Subsequent
Cancel and OK do not close the dialog either. Window manager's close
button works.
Probably the best thing to do when device unplugs while password
dialog is still open is to destroy the dialog right away. However it
seem that while a dialog is open D-Bus events are delayed until
application returns to main loop.
So the attached patch just handles exception that is thrown when D-Bus
ProvidePassword() is called on detached device.
To reproduce
1) Enable password protection on your device
2) Make sure synce-gnome/src/test.py is running (not synce-engine)
3) Plug the device to USB (or bluetoothe, not tested). Password dialog appears.
4) Unplug the device. The dialog is still on screen.
5) Press OK in the dialog
What happens: Dialog remains open, the click was ignored. Subsequent
Cancel and OK do not close the dialog either. Window manager's close
button works.
Probably the best thing to do when device unplugs while password
dialog is still open is to destroy the dialog right away. However it
seem that while a dialog is open D-Bus events are delayed until
application returns to main loop.
So the attached patch just handles exception that is thrown when D-Bus
ProvidePassword() is called on detached device.
--
/Petr4
/Petr4