1
0
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:
Leo Franchi 2011-04-11 11:01:26 -04:00
parent c24a95e49f
commit 1cb3516dc6
2 changed files with 2 additions and 10 deletions

View File

@ -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;

View File

@ -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 ) );
}