<table><tr><td style="">jtamate created this revision.<br />jtamate added reviewers: Frameworks, dfaure.<br />Restricted Application added a project: Frameworks.<br />jtamate 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/D10071" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Instead of an assert do as the documentation tells: return an invalid Url.</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">In case both URLs are equal, an invalid URL is returned</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><p>How to assert:<br />
In dolphin, in the location bar, change it into text and enter into one level directory from root, for example /d<br />
When it changes into the breadcrum, press into the root one and crash (in Debug build).รง</p>

<p>I've been using this patch one month. And it doesn't affect the unit tests.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10071" rel="noreferrer">https://phabricator.kde.org/D10071</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/filewidgets/urlutil_p.h</div></div></div><br /><div><strong>To: </strong>jtamate, Frameworks, dfaure<br /></div>