<p>This is required whenever you cannot guess the type from the extension, which is basically true for all remote (fish, http, whatever) text-files on linux, as those seldomly have a .txt extension.</p>
<p>I guess the problem here are queued events that are sitting in the event-queue when openDocument(..) is called. Maybe we can block those events from being processed until the function finishes..</p>
<p><blockquote type="cite">Am 28.09.2010 20:20 schrieb "Milian Wolff" <<a href="mailto:mail@milianw.de">mail@milianw.de</a>>:<br><br>Milian Wolff, 26.09.2010:<br>
<p><font color="#500050">> Heyho,<br>> <br>> anyone ever got this and went mad:<br>> <br>> ASSERT: "!documents.contains(url) || documents...</font></p>I just spoke to David Faure, he said that this code should _not_ be required.<br>
KIO::mimetype should only be required for KIO slaves like HTTP where one<br>
cannot rely on the file extension to guess a mimetype.<br>
<br>
$ kmimetypefinder sftp://bla/something/read.php<br>
application/x-php<br>
(accuracy 100)<br>
<br>
It does not even connect to the host, it just looks at the URL and its<br>
extension.<br>
<br>
So, david - why did you add this code? I'm tempted to remove it again.<br>
<br>
What is left to be done is testing this:<br>
<a href="https://bugs.kde.org/show_bug.cgi?id=234644" target="_blank">https://bugs.kde.org/show_bug.cgi?id=234644</a> in a 4.1 build - can someone do<br>
this for me? Otherwise I'll try it tomorrow.<br>
<p><font color="#500050"><br>Bye<br><br>-- <br>Milian Wolff<br><a href="mailto:mail@milianw.de">mail@milianw.de</a><br><a href="http://milianw.de">http://milianw.de</a></font></p><br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></p>