Bug 304343

Summary: disabling and re-enabling an account fast gives unexpected UI behaviour
Product: [Unmaintained] telepathy Reporter: George Kiagiadakis <mail>
Component: accounts-kcmAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, mklapetek
Priority: NOR    
Version: git-latest   
Target Milestone: Future   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George Kiagiadakis 2012-07-31 16:05:12 UTC
If you go and disable an account and then re-enable it fast, the UI behaves weird. The account is usually grayed out while it is connecting.

This happens because the model/view architecture does not allow us to wait for the setEnabled() pending operation to be completed and therefore the account is re-enabled before it even gets disabled on MC.
Comment 1 David Edmundson 2012-10-26 04:39:41 UTC
I can't reproduce this. I've selected an account and pressed space really fast (which disables/enables) and all is absolutely fine. Clicking quickly tends to trigger the account edit dialog

I can see how it's theoretically an issue, but practically I'm not able to reproduce it.

Can anyone else? 
Please repoen if anyone can actually reproduce this.
Comment 2 Martin Klapetek 2012-10-26 08:10:24 UTC
I used to be able to reproduce it, now I can't anymore, all works as supposed.
Comment 3 George Kiagiadakis 2012-10-26 09:32:37 UTC
I am not able to reproduce the original issue either. There is still a minor painting issue though: Select a connected account, disable it and re-enable it fast from the check box. The edit account dialog will pop up, press cancel. The checkbox now has a grayed-out tick on it, but it is disabled. You can also reproduce it in the opposite way, with a disabled account, enabling it and re-disabling it fast. Unfortunately it gets removed after a repaint event, so I cannot take a screenshot of it.