<table><tr><td style="">hein updated this revision to Diff 37105.<br />hein retitled this revision from "Work around KActivitiesStats' ResultsModel emitting wrong moves" to "Fix crash on post-initial refresh()".<br />hein edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-g3ydtsa6glx22qy/">(Show Details)</a><br />hein added a comment.
</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/D13856">View Revision</a></tr></table><br /><div><div><p>Drop the hack.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Works around bug 396102 at negligible performance cost, in a way<br />
that won't break when KActivitiesStats gets fixed.<br />
<br />
Rationale:<br />
* I don't have time to fix KActivitiesStats.<br />
* The maintainer of KActivitiesStats may not be available for a fix.<br />
* There's an installed base of Plasma LTS which will not update KF5.<br />
<br />
As a bonus, this fixes a crash when refresh() would have ever been<br />
called during normal operation: The InvalidAppsFilterProxy and</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">The InvalidAppsFilterProxy and GroupSortProxy models were creating</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">GroupSortProxy models were creating circular parent-child relation-</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">circular parent-child relationships by setting themselves as parents</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ships by setting themselves as parents </span>of their parent objects.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D13856?vs=37077&id=37105">https://phabricator.kde.org/D13856?vs=37077&id=37105</a></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/D13856">https://phabricator.kde.org/D13856</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/kicker/plugin/recentusagemodel.cpp<br />
applets/kicker/plugin/recentusagemodel.h</div></div></div><br /><div><strong>To: </strong>hein, davidedmundson, mart<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>