Commit f2b2d948 authored by Albert Astals Cid's avatar Albert Astals Cid

Open CBR files with shared-mime-info >= 1.7

Not ideal fix surely but it'll do for the moment

BUGS: 369078
parent 744a6901
......@@ -75,7 +75,7 @@ bool Document::open( const QString &fileName )
if ( !processArchive() ) {
return false;
}
} else if ( mime->is( "application/x-cbr" ) || mime->name() == "application/x-rar" ) {
} else if ( mime->is( "application/x-cbr" ) || mime->name() == "application/x-rar" || mime->name() == "application/vnd.rar" ) {
if ( !Unrar::isAvailable() ) {
mLastErrorString = i18n( "Cannot open document, unrar was not found." );
return false;
......
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