<table><tr><td style="">ahmadsamir created this revision.<br />ahmadsamir added reviewers: Frameworks, dfaure.<br />Herald added a project: Frameworks.<br />ahmadsamir 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/D23875">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When creating multiple nested new folders, one at a time, in the "save as"<br />
dialog, where folders are created and entered, a dirlister would hit an<br />
assert (in DirItem::reinsert()), because one of the created folders would<br />
eventually get inserted in pendingUpdates.</p>

<p>Add a unit test in kfilewidgettest.</p>

<p>BUG: 408801<br />
FIXED-IN: 5.62.0</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Open a file in e.g. okular, then "save as"</li>
<li class="remarkup-list-item">Create a new folder from the dialog, then another ... etc, usually 2-3 new folders would hit the assert (keep going, the number varies apparently) and the app would crash</li>
<li class="remarkup-list-item">Apply the patch then try again, it shouldn't crash any more</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>ahmad/kcoredirlister (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23875">https://phabricator.kde.org/D23875</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/kfilewidgettest.cpp<br />
src/core/kcoredirlister_p.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, Frameworks, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>