From eafb1f1b6c0452cd661c481b2653974a8d1810b0 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 9 Sep 2014 17:33:04 +0200 Subject: [PATCH] * Make sure supported file extensions are case-insensitive. --- src/tomahawk/TomahawkApp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tomahawk/TomahawkApp.cpp b/src/tomahawk/TomahawkApp.cpp index 4a010aa03..5fa1b0299 100644 --- a/src/tomahawk/TomahawkApp.cpp +++ b/src/tomahawk/TomahawkApp.cpp @@ -768,7 +768,7 @@ TomahawkApp::loadUrl( const QString& url ) { QFile f( url ); QFileInfo info( f ); - if ( info.suffix() == "xspf" ) + if ( info.suffix().toLower() == "xspf" ) { XSPFLoader* l = new XSPFLoader( true, this ); tDebug( LOGINFO ) << "Loading spiff:" << url; @@ -776,7 +776,7 @@ TomahawkApp::loadUrl( const QString& url ) return true; } - else if ( info.suffix() == "jspf" ) + else if ( info.suffix().toLower() == "jspf" ) { JSPFLoader* l = new JSPFLoader( true, this ); tDebug( LOGINFO ) << "Loading j-spiff:" << url; @@ -784,7 +784,7 @@ TomahawkApp::loadUrl( const QString& url ) return true; } - else if ( info.suffix() == "axe" ) + else if ( info.suffix().toLower() == "axe" ) { QFileInfo fi( url ); if ( fi.exists() )