From d9dbc7f1607e3c876d8d159ca501edaa0dd736b9 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Wed, 9 Jan 2013 05:55:12 +0100 Subject: [PATCH] * Support external links in artist biographies. --- .../widgets/infowidgets/ArtistInfoWidget.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp index 9cb1d7aff..e05b7d392 100644 --- a/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp +++ b/src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp @@ -20,6 +20,7 @@ #include "ArtistInfoWidget.h" #include "ui_ArtistInfoWidget.h" +#include #include #include @@ -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 ); + } }