1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-19 15:29:42 +01:00

Fix: Result of operation is garbage or undefined

This commit is contained in:
Uwe L. Korn 2014-07-06 17:54:33 +01:00
parent 6011b2c973
commit 3e71fc7d37

View File

@ -161,12 +161,14 @@ SpotifyParser::lookupSpotifyBrowse( const QString& link )
if ( m_browseUri.contains( "spotify:user" ) )
type = DropJob::Playlist;
if ( m_browseUri.contains( "spotify:artist" ) )
else if ( m_browseUri.contains( "spotify:artist" ) )
type = DropJob::Artist;
if ( m_browseUri.contains( "spotify:album" ) )
else if ( m_browseUri.contains( "spotify:album" ) )
type = DropJob::Album;
if ( m_browseUri.contains( "spotify:track" ) )
else if ( m_browseUri.contains( "spotify:track" ) )
type = DropJob::Track;
else
return; // Type not supported.
QUrl url;