<table><tr><td style="">mdlubakowski created this revision.<br />Herald added a project: KDevelop.<br />Herald added a subscriber: kdevelop-devel.<br />mdlubakowski requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D22660">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Related: BUG 406931<br />
Issue: When you select an inner node (method or member) in Classes panel, then type something in search bar that filters that node out, Kdevelop crashes.<br />
It seems that when nodes get filtered, at some point currentIndex of QTreeView points to deleted node, which causes segfault in ClassModel::hasChildren.<br />
Manually invalidating currentIndex before filtering seems to have fixed the issue, I would appreciate if somebody else tested that too.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22660">https://phabricator.kde.org/D22660</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/classbrowser/classwidget.cpp</div></div></div><br /><div><strong>To: </strong>mdlubakowski<br /><strong>Cc: </strong>kdevelop-devel, hmitonneau, christiant, glebaccon, domson, antismap, iodelay, alexeymin, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd<br /></div>