<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Frameworks, dfaure, elvisangelaccio, aacid.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />ngraham 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/D17911">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After <a href="https://phabricator.kde.org/R241:ef57863a73c0e58b94f9f9f0aa1f4e918d98e79a" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">ef57863a73c0e58b94f9f9f0aa1f4e918d98e79a</a>, the <tt style="background: #ebebeb; font-size: 13px;">knewfilemenu</tt> test started failing. This was for three reasons:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">I forgot to run the tests, sorry about that!</li>
<li class="remarkup-list-item">The test itself had an error that was being masked by the bug fixed in that commit</li>
<li class="remarkup-list-item"><tt style="background: #ebebeb; font-size: 13px;">KIO::mkdir</tt> is a subclass of <tt style="background: #ebebeb; font-size: 13px;">SimpleJob</tt>, and is capable of creating directorties, so the previous code did not emit the correct signals because the SimpleJob condition can result in the job having its <tt style="background: #ebebeb; font-size: 13px;">newDirectoryURL</tt> property set</li>
</ol>

<p>This patch fixes the above issues by correcting the bug in the test and always checking for the <tt style="background: #ebebeb; font-size: 13px;">newDirectoryURL</tt> property no matter what kind of job it is.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">All tests now pass</li>
<li class="remarkup-list-item">Copying files and folders still works</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-test-and-code (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D17911">https://phabricator.kde.org/D17911</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/knewfilemenutest.cpp<br />
src/filewidgets/knewfilemenu.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, Frameworks, dfaure, elvisangelaccio, aacid<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>