[Bug 273725] Ugly hack in AccountFilterModel

David Edmundson kde at davidedmundson.co.uk
Mon May 30 02:44:18 CEST 2011


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





--- Comment #1 from David Edmundson <kde davidedmundson co uk>  2011-05-30 02:44:18 ---
Found it.

In ProxyTreeNode a signal is emitted when data changes.
A treenode should send itself as a paremeter of the signal, this is used to
build the index.

The buggy code:
    connect(sourceNode,
            SIGNAL(changed(TreeNode*)),
            SIGNAL(changed(TreeNode*)));

sent the id of the real ContactModelItem* in the accounts model, not the
proxyModeItem in the groups model. This caused messed up indexes to be created
which weren't sure which model they were from.

Will push fix to RB tomorrow.

-- 
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