mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-14 13:01:53 +02:00
As per domme's suggestion, use ::fromUserInput to make loading xspfs work everywhere
This commit is contained in:
parent
c24a95e49f
commit
1cb3516dc6
@ -524,7 +524,7 @@ TomahawkApp::loadUrl( const QString& url )
|
||||
if( f.exists() && info.suffix() == "xspf" ) {
|
||||
XSPFLoader* l = new XSPFLoader( true, this );
|
||||
qDebug() << "Loading spiff:" << url;
|
||||
l->load( QUrl( url ) );
|
||||
l->load( QUrl::fromUserInput( url ) );
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
@ -385,15 +385,7 @@ TomahawkWindow::loadSpiff()
|
||||
return;
|
||||
|
||||
XSPFLoader* loader = new XSPFLoader;
|
||||
QFileInfo info( urlstr );
|
||||
if( info.isFile() )
|
||||
{
|
||||
QFile f( urlstr );
|
||||
loader->load( f );
|
||||
} else
|
||||
{
|
||||
loader->load( QUrl( urlstr ) );
|
||||
}
|
||||
loader->load( QUrl::fromUserInput( urlstr ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user