mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 14:28:24 +01:00
No more Mr. Nice Guy, No more Mr. Cleaaaheean ... except today
This commit is contained in:
parent
ea55329c67
commit
054650743d
@ -95,9 +95,11 @@ Tomahawk::ExternalResolverGui::setupClickHandlerOnUrlButtons( QObject* widget )
|
||||
QPushButton* button = qobject_cast< QPushButton* >( widget );
|
||||
Q_ASSERT( button );
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
|
||||
connect( button, &QPushButton::clicked, [=]() {
|
||||
QDesktopServices::openUrl( widget->property( "url" ).toUrl() );
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
// and recurse
|
||||
|
Loading…
x
Reference in New Issue
Block a user