<table><tr><td style="">elvisangelaccio created this revision.<br />elvisangelaccio added a reviewer: dfaure.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D8697" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Since 5.10 (commit 0dee566e98 in qtbase) Qt complains if we make a<br />
system call with an empty filename (with a "Empty filename passed to<br />
function" runtime warning).</p>
<p>There is no reason to call <tt style="background: #ebebeb; font-size: 13px;">exists()</tt> if we already know that a filename<br />
is empty. While at it, port to <tt style="background: #ebebeb; font-size: 13px;">QFileInfo::exists()</tt> which is faster.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Together with <a href="https://phabricator.kde.org/D8696" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;" rel="noreferrer">D8696</a>, fixes all the runtime warnings when running <tt style="background: #ebebeb; font-size: 13px;">tests/kfilewidgettest_gui</tt>.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-empty-exists</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8697" rel="noreferrer">https://phabricator.kde.org/D8697</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/knfsshare.cpp<br />
src/core/ksambashare.cpp</div></div></div><br /><div><strong>To: </strong>elvisangelaccio, dfaure<br /><strong>Cc: </strong>Frameworks<br /></div>