mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
support loading local .xspfs from files
This commit is contained in:
@@ -384,10 +384,16 @@ TomahawkWindow::loadSpiff()
|
||||
if ( !ok || urlstr.isEmpty() )
|
||||
return;
|
||||
|
||||
QUrl url( urlstr );
|
||||
|
||||
XSPFLoader* loader = new XSPFLoader;
|
||||
loader->load( url );
|
||||
QFileInfo info( urlstr );
|
||||
if( info.isFile() )
|
||||
{
|
||||
QFile f( urlstr );
|
||||
loader->load( f );
|
||||
} else
|
||||
{
|
||||
loader->load( QUrl( urlstr ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user