Commit ee13a2d2 authored by Stefano Pettini's avatar Stefano Pettini
Browse files

Fixed "Open Last-fm webpage" of similar artist

It looks like the assumption that last.fm returns incomplete
urls is not valid. This at least since 2015.

BUG: 354849
FIXED-IN: 2.9
parent fc9cce2b
......@@ -413,10 +413,8 @@ ArtistWidget::clear()
void
ArtistWidget::openArtistUrl()
{
// somehow Last.fm decides to supply this url without the scheme
KUrl artistUrl = QString( "http://%1" ).arg( m_artist->url().url() );
if( artistUrl.isValid() )
QDesktopServices::openUrl( artistUrl );
if( m_artist->url().isValid() )
QDesktopServices::openUrl( m_artist->url() );
}
void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment