1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-18 06:48:23 +01:00

* Make sure supported file extensions are case-insensitive.

This commit is contained in:
Christian Muehlhaeuser 2014-09-09 17:33:04 +02:00
parent 1cd96b8a74
commit eafb1f1b6c

View File

@ -768,7 +768,7 @@ TomahawkApp::loadUrl( const QString& url )
{ {
QFile f( url ); QFile f( url );
QFileInfo info( f ); QFileInfo info( f );
if ( info.suffix() == "xspf" ) if ( info.suffix().toLower() == "xspf" )
{ {
XSPFLoader* l = new XSPFLoader( true, this ); XSPFLoader* l = new XSPFLoader( true, this );
tDebug( LOGINFO ) << "Loading spiff:" << url; tDebug( LOGINFO ) << "Loading spiff:" << url;
@ -776,7 +776,7 @@ TomahawkApp::loadUrl( const QString& url )
return true; return true;
} }
else if ( info.suffix() == "jspf" ) else if ( info.suffix().toLower() == "jspf" )
{ {
JSPFLoader* l = new JSPFLoader( true, this ); JSPFLoader* l = new JSPFLoader( true, this );
tDebug( LOGINFO ) << "Loading j-spiff:" << url; tDebug( LOGINFO ) << "Loading j-spiff:" << url;
@ -784,7 +784,7 @@ TomahawkApp::loadUrl( const QString& url )
return true; return true;
} }
else if ( info.suffix() == "axe" ) else if ( info.suffix().toLower() == "axe" )
{ {
QFileInfo fi( url ); QFileInfo fi( url );
if ( fi.exists() ) if ( fi.exists() )