<table><tr><td style="">hein created this revision.<br />Restricted Application added a project: Plasma.
</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/D4749" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The new activity-aware implementation of<br />
LauncherTasksModel::setLauncherList() would only accept the passed list<br />
when it changed any activities associations, not when the order changed.<br />
This would effectively turn TasksModel::move involving launcher tasks<br />
into a no-op.</p>

<p>Rearranging launchers works like this:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">A client calls TasksModel::move one or many times. TasksModel::move updates TasksModel's internal sort mapping and implements it, causing a visible order change in any views.</li>
<li class="remarkup-list-item">When it is done calling move(), the client calls TasksModel::syncLaunchers. TasksModel::syncLaunchers calls LauncherTasksModel::setLauncherList with a new list derived from its sort mapping, and updates its sort mapping in expectation of row indices changing in the launcher tasks source model.</li>
</ol>

<p>Due to the above bug, the sort mapping would be adjusted in expectation<br />
of changes the launcher tasks model would not actually do, appearing to<br />
undo the moves the next time a view is updated from source data.</p>

<p>CCMAIL:ivan.cukic@kde.org</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.9</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4749" rel="noreferrer">https://phabricator.kde.org/D4749</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>libtaskmanager/launchertasksmodel.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>hein, Plasma, davidedmundson, mart<br /><strong>Cc: </strong>plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol<br /></div>