Regarding commit 0b860f293bbc54bd69c97476156de8eb7546b755 (use documentController for mimetype as fallback)

David Nolden david.nolden.kdevelop at art-master.de
Thu Mar 1 11:27:00 UTC 2012


The documentcontroller is not thread-safe, therefore this might cause
random crashes, you shouldn't do this.

A sane way might be the opposite: Add
"LanguageController::setMimetypeForUrl(..)" backed by a QMap<KUrl,
KMimeType> cache, and call it from the document-controller.

Greetings, David




More information about the KDevelop-devel mailing list