<table><tr><td style="">jtamate updated this revision to Diff 33211.<br />jtamate edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-dxmgve62suxn5eo/">(Show Details)</a><br />jtamate edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-jjksdxpgrj7dmy2/">(Show Details)</a><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/D12371">View Revision</a></tr></table><br /><div><div><p>The responsible for changing smb:// into smb:/// was: void KFileWidgetPrivate::_k_enterUrl(const QUrl &url)<br />
With this patch, the crashes are gone, as there is no redirection to smb:///<br />
But now there is no smb error message. <a href="https://phabricator.kde.org/F5824747" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">F5824747: smb_error_spanish.png</a> (in spanish). unless smb:/// is introduced manually as the url.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">When KDirModel is destroyed, it also deletes the dirlister, but KCoreDirListerCache didn't knew anything about this deletion, and when it consulted listersCurrentlyHolding in slotRedirection resulted always in a crash</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Do not change url path of non local urls</span>.<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Using QPointer</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">As there is no redirection from smb:// to smb:///</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">it can detect when dirlister has been deleted and remove it from the list.<br />
</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">no crash.</span><br />
As a side effect, it also fixes the crash I got in [[ https://phabricator.kde.org/D10989 | D10989 ]]<br />
</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><div style="padding: 8px 0;">...</div>Press "save as" and go to network, then Samba shared resources<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">, wait for the error</span>. Close the dialog.<div style="padding: 8px 0;">...</div>Now, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">again the</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">no</span> error messa<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ge (Next thing to investigate)</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ge</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D12371?vs=33045&id=33211">https://phabricator.kde.org/D12371?vs=33045&id=33211</a></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12371">https://phabricator.kde.org/D12371</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/filewidgets/kfilewidget.cpp</div></div></div><br /><div><strong>To: </strong>jtamate, dfaure, Frameworks, apol<br /><strong>Cc: </strong>anthonyfieroni, apol, michaelh, bruns<br /></div>