<table><tr><td style="">dfaure created this revision.<br />dfaure added reviewers: dvratil, mlaurent.<br />Restricted Application added a project: KDE PIM.
</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/D9417" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If EntityTreeModel::modelIndexForCollection() doesn't find the<br />
collection we're dropping, then insert it first (via the base class<br />
dropMimeData) and then look for it again, to handle it as a move.</p>

<p>I hope this doesn't affect other EOPM users than the favorites model;<br />
but when reordering a full ETM surely the dropped folder is somewhere in the<br />
ETM.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>When using the ListView mode for the favorites, this allows to<br />
directly drop a new folder (from the folder tree) to a specific position,<br />
as shown by the "between items" drop indicator.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R165 Akonadi </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/D9417" rel="noreferrer">https://phabricator.kde.org/D9417</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/models/entityorderproxymodel.cpp<br />
src/core/models/entityorderproxymodel.h</div></div></div><br /><div><strong>To: </strong>dfaure, dvratil, mlaurent<br /><strong>Cc: </strong>KDE PIM, dvasin, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>