Commit 7ad04b78 authored by Enrico Ros's avatar Enrico Ros

CVS_SILENT add x-pdf as mimetype

svn path=/branches/kpdf_annotations/kdegraphics/kpdf/; revision=402353
parent c7a14857
...@@ -138,7 +138,8 @@ bool KPDFDocument::openDocument( const QString & docFile, const KURL & url ) ...@@ -138,7 +138,8 @@ bool KPDFDocument::openDocument( const QString & docFile, const KURL & url )
// create the generator based on the file's mimetype // create the generator based on the file's mimetype
KMimeType::Ptr mime = KMimeType::findByPath( docFile ); KMimeType::Ptr mime = KMimeType::findByPath( docFile );
QString mimeName = mime->name(); QString mimeName = mime->name();
if ( mimeName == "application/pdf" ) if ( mimeName == "application/pdf" ||
mimeName == "application/x-pdf" )
generator = new PDFGenerator( this ); generator = new PDFGenerator( this );
/* else if ( mimeName == "application/postscript" ) /* else if ( mimeName == "application/postscript" )
kdError() << "PS generator not available" << endl;*/ kdError() << "PS generator not available" << endl;*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment