<table><tr><td style="">jtamate updated this revision to Diff 26238.<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/D10155" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>Something like this?</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>if firstMimeType == "text/uri-list" (see above, PreferLocalUrls), it's still going to be slow, no? Should this be handled >generally here by introducing a helper that checks the mime type and then uses either urls() directly or call data as >before?</p></blockquote>



<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>also, what happens if PreferLocalUrls is set, but no text/uri-list data is available, could the old way of getting the data >for the s_kdeUriListMime have worked more reliably?</p></blockquote>

<p>If PreferLocalUrls then firstMimeType = text/url-list<br />
if firstMimeType == text/url-list apply urls() method</p>

<p>The test hash both desktop: and file: urls in the same MimeType and it passes.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R244 KCoreAddons</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D10155?vs=26113&id=26238" rel="noreferrer">https://phabricator.kde.org/D10155?vs=26113&id=26238</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10155" rel="noreferrer">https://phabricator.kde.org/D10155</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/lib/io/kurlmimedata.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, dfaure<br /><strong>Cc: </strong>mwolff, michaelh, ngraham<br /></div>