mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
As per domme's suggestion, use ::fromUserInput to make loading xspfs work everywhere
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user