[Bug 299092] Don't create server-side group 'Ungrouped' when removing contact from all groups

David Edmundson kde at davidedmundson.co.uk
Mon May 7 15:06:59 BST 2012


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

David Edmundson <kde at davidedmundson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kde at davidedmundson.co.uk

--- Comment #1 from David Edmundson <kde at davidedmundson.co.uk> ---
How I want this fixed:

Add an additional role to the groupsModel called "GroupNameRole".

Instead of making ungrouped a group called "Ungrouped" it becomes a group
called "".
The DisplayRole returns the same as the GroupNameRole _except_ in the case
where the group == "" at which point it returns i18n("Ungrouped").

the code in the contact list should always use the GroupRole when adding
contacts to groups. (possibly wrap it in an "if" statement). The display will
look as it does now.

This also tidies the code as it eliminates the need for that
m_translatedUngrouped in the groups model.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kde-telepathy-bugs mailing list