<table><tr><td style="">janus created this revision.<br />Restricted Application added a subscriber: kde-utils-devel.<br />janus 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/D11188">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Emit aboutToEmptyCache to invoke RadialMap::Widget::invalidate(),<br />
so folder can be safely deleted.</p>

<p>If "Scan across system boundaries" isn't set and there is mountpoint B<br />
contained in another mountpoint A, user may trigger segfault if scan of<br />
A and then B is requested. It is caused by call of MainWindow class to<br />
m_map->invalidate() method, which is invoked after m_map's m_tree member<br />
is deleted during ScanManager::start method.</p>

<p>This fix causes that RadialMap::Widget::invalidate() is called twice in<br />
fact, however second call is fine, because "invalidate" is guarded by<br />
"isValid" method.</p>

<p>BUG: 389119</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/D11188">https://phabricator.kde.org/D11188</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/scan.cpp</div></div></div><br /><div><strong>To: </strong>janus<br /><strong>Cc: </strong>kde-utils-devel<br /></div>