<table><tr><td style="">sitter added a comment.
</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/D21781">View Revision</a></tr></table><br /><div><div><p>Can you please explain what bug you intend to fix here and how to test it?</p>
<p>I am not sure I understand what you are fixing in the append....<br />
The way listing works is that we open a dir, iterate its entries, for each file entry we append a File* for each directory we recurse and then append the returned Folder* making the current Folder the parent and the returned Folder the child. That is to say: once a child gets a parent the child is complete, there are no more appends happening to that child.</p>
<p>You could add a <tt style="background: #ebebeb; font-size: 13px;">Q_ASSERT(!parent());</tt> to the top of the append and it should never crash there.</p>
<p>The remove change looks good though.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R352 Filelight</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21781">https://phabricator.kde.org/D21781</a></div></div><br /><div><strong>To: </strong>bruleherman, aacid, sitter<br /><strong>Cc: </strong>ngraham, kde-utils-devel<br /></div>