1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 03:10:12 +02:00

* Support external links in artist biographies.

This commit is contained in:
Christian Muehlhaeuser
2013-01-09 05:55:12 +01:00
parent 04175de726
commit d9dbc7f160

View File

@@ -20,6 +20,7 @@
#include "ArtistInfoWidget.h"
#include "ui_ArtistInfoWidget.h"
#include <QDesktopServices>
#include <QScrollArea>
#include <QScrollBar>
@@ -324,7 +325,15 @@ void
ArtistInfoWidget::onBiographyLinkClicked( const QUrl& url )
{
tDebug() << Q_FUNC_INFO << url;
GlobalActionManager::instance()->parseTomahawkLink( url.toString() );
if ( url.scheme() == "tomahawk" )
{
GlobalActionManager::instance()->parseTomahawkLink( url.toString() );
}
else
{
QDesktopServices::openUrl( url );
}
}