mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
* Support external links in artist biographies.
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
#include "ArtistInfoWidget.h"
|
#include "ArtistInfoWidget.h"
|
||||||
#include "ui_ArtistInfoWidget.h"
|
#include "ui_ArtistInfoWidget.h"
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
#include <QScrollArea>
|
#include <QScrollArea>
|
||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
|
|
||||||
@@ -324,7 +325,15 @@ void
|
|||||||
ArtistInfoWidget::onBiographyLinkClicked( const QUrl& url )
|
ArtistInfoWidget::onBiographyLinkClicked( const QUrl& url )
|
||||||
{
|
{
|
||||||
tDebug() << Q_FUNC_INFO << url;
|
tDebug() << Q_FUNC_INFO << url;
|
||||||
GlobalActionManager::instance()->parseTomahawkLink( url.toString() );
|
|
||||||
|
if ( url.scheme() == "tomahawk" )
|
||||||
|
{
|
||||||
|
GlobalActionManager::instance()->parseTomahawkLink( url.toString() );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QDesktopServices::openUrl( url );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user