1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-07 06:36:55 +02:00

No more Mr. Nice Guy, No more Mr. Cleaaaheean ... except today

This commit is contained in:
Dominik Schmidt
2015-12-17 01:24:23 +01:00
parent ea55329c67
commit 054650743d

View File

@@ -95,9 +95,11 @@ Tomahawk::ExternalResolverGui::setupClickHandlerOnUrlButtons( QObject* widget )
QPushButton* button = qobject_cast< QPushButton* >( widget ); QPushButton* button = qobject_cast< QPushButton* >( widget );
Q_ASSERT( button ); Q_ASSERT( button );
#if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
connect( button, &QPushButton::clicked, [=]() { connect( button, &QPushButton::clicked, [=]() {
QDesktopServices::openUrl( widget->property( "url" ).toUrl() ); QDesktopServices::openUrl( widget->property( "url" ).toUrl() );
}); });
#endif
} }
// and recurse // and recurse