<table><tr><td style="">jtamate updated this revision to Diff 37422.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-x66vpuo7eba3t6g/">(Show Details)</a><br />jtamate 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/D13814">View Revision</a></tr></table><br /><div><div><p>Created the bug report referenced in the summary and code.<br />
Changed the strings to compare, they can be anything.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>Perhaps there is a remote possibility of closing a view while sorting which will cause the lessThan lambda to have a dangling reference to m_collator and crash.</p></blockquote>

<p>Right now this possibility is non-existent, sort does not allows any event management, and in fact I thing is this bug report: <a href="https://bugs.kde.org/show_bug.cgi?id=395374" class="remarkup-link" target="_blank" rel="noreferrer">https://bugs.kde.org/show_bug.cgi?id=395374</a></p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>This way the member QCollator is not copied and initialized several times. <span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
<br />
This requires a workaround in the constructor for https://bugreports.qt.io/browse/QTBUG-69361<br />
Just a single comparison to Force the cleanup of QCollator.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R318 Dolphin</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D13814?vs=37305&id=37422">https://phabricator.kde.org/D13814?vs=37305&id=37422</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13814">https://phabricator.kde.org/D13814</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kitemviews/kfileitemmodel.cpp<br />
src/kitemviews/kfileitemmodel.h</div></div></div><br /><div><strong>To: </strong>jtamate, Dolphin, Frameworks, markg, elvisangelaccio<br /><strong>Cc: </strong>elvisangelaccio, apol, bruns, markg, kfm-devel, spoorun, navarromorales, firef, andrebarros, emmanuelp<br /></div>