Manual fallback/workaround a kdelibs bug?

Andreas Pakulat apaku at gmx.de
Sun Jul 5 21:13:53 UTC 2009


Hi,

please have a short look at:
https://bugs.kde.org/show_bug.cgi?id=198477

I'd like to know wether we should do a workaround inside
documentcontroller for this. Basically doing:

KMimeType::Ptr mime = KMimeType::findByUrl();
if( !isTextType(mime) && url.isLocalFile() ) {
    // Try harder to workaround https://bugs.kde.org/show_bug.cgi?id=198477
    mime = KMimeType::findByFileContent( url.toLocalFile() );
}

Opinions? 

Andreas

-- 
Never reveal your best argument.




More information about the KDevelop-devel mailing list