<table><tr><td style="">hein created this revision.<br />hein added a reviewer: davidedmundson.<br />Restricted Application added a project: Plasma.<br />hein 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/D14243">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Don't change the proxy maps prior to insert/remove transactions so<br />
rowCount() at transaction start time matches the count passed into<br />
the method. The old code hits an ASSERT in Qt 5.11 otherwise.</p>

<p>Care is taken not to emit dataChanged() in the middle of another<br />
transaction.</p>

<p>Also cleaned up vestiges of caching lastRow(): This cache was<br />
evicted all over the places but never actually filled anymore, so<br />
maybe we don't need it.</p>

<p>BUG:396666</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</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/D14243">https://phabricator.kde.org/D14243</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>containments/desktop/plugins/folder/positioner.cpp<br />
containments/desktop/plugins/folder/positioner.h</div></div></div><br /><div><strong>To: </strong>hein, davidedmundson<br /><strong>Cc: </strong>plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>