[Bug 273806] the last state of groups should be restored

Martin Klapetek martin.klapetek at gmail.com
Mon May 23 14:59:29 CEST 2011


https://bugs.kde.org/show_bug.cgi?id=273806


Martin Klapetek <martin.klapetek at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |martin.klapetek at gmail.com




--- Comment #1 from Martin Klapetek <martin klapetek gmail com>  2011-05-23 14:59:27 ---
After spending some time on this bug, I came to conclusion, that this is not an
easy/straightforward task.

I can save the expand state per group, no problem. But I can't easily reuse it
on new contact list window, because I have no way of telling, that the model
finished reading all the data (and in fact it never does). So the solution
would be to connect to rowsInserted() signal and then check if that row is a
group and if so then check the config and expand it accordingly. 

But that would be active for all newly added groups, ie. after some time you
connect some account with group "G1", which is saved to be expanded. So the
rowsInserted() will be emitted, the group name will be checked and the group
itself expanded. The problem is, that it may feel like an unconsistent
behaviour - only some groups are expanded of the newly connected account and
some are not. The user might think - what the heck? Why not all of my groups
are expanded? (He might have forgotten that he had this group expanded some
time ago)

So how to actually do this?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KDE-Telepathy mailing list