From 7c4ac08749f15f6937a92ecb1f03447c46cf77a6 Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 21 Jan 2015 19:45:29 -0800 Subject: [PATCH] Be more lenient about accepting jspf and m3u --- src/tomahawk/TomahawkWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tomahawk/TomahawkWindow.cpp b/src/tomahawk/TomahawkWindow.cpp index 821d76572..9989bce4a 100644 --- a/src/tomahawk/TomahawkWindow.cpp +++ b/src/tomahawk/TomahawkWindow.cpp @@ -1205,12 +1205,12 @@ TomahawkWindow::importPlaylist( const QString& url, bool autoUpdate ) const QUrl u = QUrl::fromUserInput( url ); const QString ext = u.toString().toLower(); - if ( ext.endsWith( ".m3u" ) ) + if ( ext.endsWith( "m3u" ) ) { M3uLoader* loader = new M3uLoader( u.toString(), true ); loader->parse(); } - else if ( ext.endsWith( ".jspf" ) ) + else if ( ext.endsWith( "jspf" ) ) { JSPFLoader* loader = new JSPFLoader( true ); connect( loader, SIGNAL( failed() ), SLOT( onJSPFError() ) );