mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 22:26:32 +02:00
* Fixed TWK-1292: Issues playing fils with '#' in the filename.
This commit is contained in:
@@ -502,12 +502,11 @@ AudioEngine::performLoadTrack( const Tomahawk::result_ptr& result, QSharedPointe
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString furl = m_currentTrack->url();
|
QString furl = m_currentTrack->url();
|
||||||
#ifdef Q_WS_WIN
|
|
||||||
if ( furl.startsWith( "file://" ) )
|
if ( furl.startsWith( "file://" ) )
|
||||||
furl = furl.right( furl.length() - 7 );
|
furl = furl.right( furl.length() - 7 );
|
||||||
#endif
|
|
||||||
tLog( LOGVERBOSE ) << "Passing to Phonon:" << furl << furl.toLatin1();
|
tLog( LOGVERBOSE ) << "Passing to Phonon:" << QUrl::fromLocalFile( furl );
|
||||||
m_mediaObject->setCurrentSource( furl );
|
m_mediaObject->setCurrentSource( QUrl::fromLocalFile( furl ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_mediaObject->currentSource().setAutoDelete( true );
|
m_mediaObject->currentSource().setAutoDelete( true );
|
||||||
|
Reference in New Issue
Block a user