<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: Frameworks, rkflx.<br />Restricted Application added a project: Frameworks.<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/D12206">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>According to a comment in the code, <span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Open With</span></span></span> was never supposed to show up for folders in the first place, but a bug prevented this wrom working: the value of <tt style="background: #ebebeb; font-size: 13px;">firstItem.url().isLocalFile()</tt> was also checked, but this always returns true for local directories, not just local files. Removing that check--and the code supporting it--fixes the issue.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p><span><span class="phui-tag-view phui-tag-type-shade phui-tag-grey phui-tag-shade "><span class="phui-tag-core ">Open With</span></span></span> entries...</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">Appear for local and remote files and symlinks to files</li>
<li class="remarkup-list-item">Do not appear for local and remote folders and symlinks to folders</li>
</ul>
<p>Examples:<br />
[Example images go here]</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>BRANCH</strong><div><div>no-open-with-for-folders (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12206">https://phabricator.kde.org/D12206</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/widgets/kfileitemactions.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, Frameworks, rkflx<br /><strong>Cc: </strong>michaelh, ngraham, bruns<br /></div>