<table><tr><td style="">hallas created this revision.<br />hallas added a reviewer: Frameworks.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />hallas 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/D19168">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fix crash in Dolphin when dropping trashed file in trash. The actual<br />
crash happens because of an assertion failure in kcoredirlister_p.h:308<br />
and this is triggered from kcoredirlister.cpp:995. What actually happens<br />
is that the dropjob determines that it should perform a move action<br />
which ends up being a rename operation for kio_trash. But it ends up<br />
moving the file to itself and this triggers the above crash. The<br />
solution is to error out in the dropjob with a KIO::ERR_DROP_ON_ITSELF<br />
error so that the user can see that it doesn't make sense to drop a<br />
file from the trash inside the trash again.</p>

<p>BUG: 378051</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Put a file in trash<br />
Drag and drop the file to the trash</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix_crash_when_dropping_trashed_file_in_trash (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19168">https://phabricator.kde.org/D19168</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/dropjobtest.cpp<br />
src/widgets/dropjob.cpp</div></div></div><br /><div><strong>To: </strong>hallas, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>