Summary: | Ugly hack in AccountFilterModel | ||
---|---|---|---|
Product: | [Unmaintained] telepathy | Reporter: | David Edmundson <kde> |
Component: | contactlist | Assignee: | Telepathy Bugs <kde-telepathy-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git-latest | ||
Target Milestone: | 0.4.0 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David Edmundson
2011-05-20 14:20:43 UTC
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. Git commit 0657159b437591fbfe98e4e2cb671d21071fd37e by David Edmundson. Committed on 30/05/2011 at 13:13. Pushed by davidedmundson into branch 'master'. Fix groups model "note updated" signal, removed horrific hack which kept invalidating the model filter. BUG: 273725 REVIEW: 101473 M +0 -4 main-widget.cpp M +7 -1 proxy-tree-node.cpp M +1 -0 proxy-tree-node.h http://commits.kde.org/telepathy-contact-list/0657159b437591fbfe98e4e2cb671d21071fd37e |